Esempio n. 1
0
        public ActionResult UpdCategory(GetAllCategory_Result updCategory, string submit)
        {
            if (submit == "SaveUpd" && action[0] == "UpdCa")
            {
                using (var ef = new LibraryEntities())
                {
                    ef.UpdCategory(Convert.ToInt32(action[1]), updCategory.name);
                }
            }

            return(RedirectToAction("Categories", "Category"));
        }