<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<%= Html.ActionLink( YavscHelpers.SiteName, "Index", "Home" ) %> <% if (Membership.GetUser()==null) { %> <%= Html.ActionLink("Login", "Login", "Account", new { returnUrl=Request.Url.PathAndQuery }, null ) %> <% } else { %> <%= HttpContext.Current.User.Identity.Name %> <%= Html.ActionLink( "Logout", "Logout", "Account", new { returnUrl=Request.Url.PathAndQuery }, null) %> <%= Html.ActionLink( "Poster", "Post", "Blogs" ) %> <%= Html.ActionLink( "Profile", "Profile", "Account" ) %> <% } %>

<%= Page.Title %>

<% if (ViewData["Error"]!=null) { %>
<%= Html.Encode(ViewData["Error"]) %>
<% } %> <% if (ViewData["Message"]!=null) { %>
<%= Html.Encode(ViewData["Message"]) %>
<% } %>