I'm at the beginner level about mvc apps so I would like some help please.
I'm trying to embed c# with jquery to test a condition of if a user.identity is authenticated on document.load but I'm getting cs1001(Identifier expected).
$(document).load(function () {
if (@{User.Identity.Name != "Someone"}){
alert("Something");
}
});
if (@Html.Raw(Json.Encode(User.Identity.Name)) != "Someone") { alert("Something"); }