public ActionResult AddConstructionType(ConstructionType constructionType) { if (!User.IsInRole("admin")) { return(View("Error")); } _adminRepository.AddConstructionType(constructionType, User.Identity.Name); return(RedirectToAction("ConstructionType")); }