@if (Request.IsAuthenticated) { @User.Identity.Name @:<p style="color:red" >Welcome,@User.Identity.Name</p> @Html.ActionLink("خروج", "Logout") } else{ @Html.ActionLink("ورود", "login") <br /> @Html.ActionLink("ثبت نام", "GetUser") }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)