Exemplo n.º 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));
        }
Exemplo n.º 2
0
 public ActionResult Delete(int id)
 {
     return(View(CategoryDataAccess.GetById(id)));
 }