public ActionResult EditingDelete(int modelID) { if (ModelState.IsValid) { MyModel.DeleteModel(List, modelID); } return(PartialView("_GridViewPartial", List)); }
public ActionResult GridViewPartialDelete(Int32 ModelID) { if (ModelID >= 0) { try { MyModel.DeleteModel(Data, ModelID); } catch (Exception e) { ViewData["EditError"] = e.Message; } } return(PartialView("_GridViewPartial", Data)); }