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))); }