예제 #1
0
        public ActionResult CreateItemCategory(ItemCategoryVM itemCategory)
        {
            string userID = FindUserID();

            if (ModelState.IsValid)
            {
                ItemRepo itemRepo = new ItemRepo();
                itemRepo.CreateItemCategory(itemCategory, userID);
                return(RedirectToAction("ItemCategoryManagement"));
            }
            else
            {
                return(View());
            }
        }