public ActionResult EditTableRowDelete(Int32 Proposalcheckpitchedroofid) { using (proposalchecklistpitchedroofCtl db = new proposalchecklistpitchedroofCtl()){ db.delete(Proposalcheckpitchedroofid); return(RedirectToAction("EditTable")); } }
public ActionResult EditTableRowsDelete(string records) { using (proposalchecklistpitchedroofCtl db = new proposalchecklistpitchedroofCtl()){ foreach (string id in records.Trim(',').Split(',')) { if (!string.IsNullOrEmpty(id.Trim())) { db.delete(Convert.ToInt32(id)); } } return(View()); } }