示例#1
0
        public ActionResult CategoryUpdate(int id)
        {
            if (Session["ID"] == null)
            {
                return(RedirectToAction("Index"));
            }

            CATEGORY category = categoryDA.GetById(id);

            PopulateStateDropdownList(category.STATE_ID);
            return(View(category));
        }
 public ActionResult Delete(int id)
 {
     return(View(CategoryDataAccess.GetById(id)));
 }