Exemplo n.º 1
0
        public ActionResult Create(FormCollection formCollection)
        {
            //var userType = Session["userType"];

            //if ("Admin".Equals(userType) == false)
            //{
            //    return RedirectToAction("Login", "Account");
            //}

            _furnitureTypeService.Create(formCollection);

            if (ModelState.IsValid)
            {
                return(RedirectToAction("Index"));
            }

            return(View("Create", "_AdminLayout"));
        }