Esempio n. 1
0
        public ActionResult Update(ClientCategory category)
        {
            var cat = CSDLQLBH.GetSingleCategory(category.CatID);

            cat.CatName = category.CatName;
            CSDLQLBH.UpdateCategory(cat);
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
        // GET: ManagerCat/Update
        public ActionResult Update(int id)
        {
            var cat = CSDLQLBH.GetSingleCategory(id);

            return(View(cat));
        }