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