op1511
op1511
CC#
Created by op1511 on 5/18/2024 in #help
is this a bad practice
var result = await HttpContext.AuthenticateAsync(
CookieAuthenticationDefaults.AuthenticationScheme
);
var result = await HttpContext.AuthenticateAsync(
CookieAuthenticationDefaults.AuthenticationScheme
);
is it bad to access httpcontext directly? what is the alternative?
3 replies
CC#
Created by op1511 on 5/18/2024 in #help
what is the best way to access the Model object in a razor view, in a javascript?
var model = @Html.Raw(Json.Encode(Model)); ^ is this a good way
4 replies