Exemplo n.º 1
0
        public ActionResult AddConstructionType(ConstructionType constructionType)
        {
            if (!User.IsInRole("admin"))
            {
                return(View("Error"));
            }

            _adminRepository.AddConstructionType(constructionType, User.Identity.Name);

            return(RedirectToAction("ConstructionType"));
        }