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