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

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

            var furnitureTypes = _furnitureTypeService.GetAll();

            return(View(furnitureTypes));
        }