public ActionResult ServiceTypeDelete(int ID) { ServiceType st = new ServiceType(); st.ServiceTypeID = ID; st.Delete(); return(RedirectToAction("ServiceTypeList")); }
public ActionResult Delete(int id) { try { var model = new ServiceType(); model.Delete(id); return(RedirectToAction("Index")); } catch (Exception ex) { return(View("Error")); } }