Files
myfriendsaround/main/MyFriendsAround.Web/Views/Shared/_LogOnPartial.cshtml
T
2011-03-23 11:58:56 +02:00

8 lines
227 B
Plaintext

@if(Request.IsAuthenticated) {
<text>Welcome <b>@Context.User.Identity.Name</b>!
[ @Html.ActionLink("Log Off", "LogOff", "Account") ]</text>
}
else {
@:[ @Html.ActionLink("Log On", "LogOn", "Account") ]
}