public ActionResult AccountInfo() { var model = new AccountInfoViewModel(); var person = securityProvider.GetPerson(User.Identity.Name); model.IsLoggedIn = !String.IsNullOrEmpty(User.Identity.Name); if (model.IsLoggedIn) { model.IsAdministrator = securityProvider.IsAdministrator(User.Identity.Name); model.AccountName = String.Format("{0} {1}", person.FirstName, person.LastName); } return(PartialView("_AccountInfo", model)); }