public ActionResult ChangeContactInfo() { if (_webSecurity.CurrentUserId == 1) { TempData["AdminContactError"] = "Administrator is not allowed to have contact details!"; return(RedirectToAction("Index", "Home")); } var personToUpdate = _volunteerSvc.GetPersonDetailsForChangeContactInfo(_webSecurity.CurrentUserId); if (personToUpdate != null) { ChangeContactInfoViewModel model = new ChangeContactInfoViewModel { Email = personToUpdate.Email, PhoneNumber = personToUpdate.PhoneNumber }; return(View(model)); } return(View("ChangeContactInfo", DetermineLayout(), null)); }