Exemplo n.º 1
0
 public ActionResult EditTableRowDelete(Int32 Workorderid)
 {
     using (buildingworkorderCtl db = new buildingworkorderCtl()){
         db.delete(Workorderid);
         return(RedirectToAction("EditTable"));
     }
 }
Exemplo n.º 2
0
 public ActionResult Delete(Int32 Workorderid)
 {
     using (buildingworkorderCtl db = new buildingworkorderCtl()){
         db.delete(Workorderid);
         return(RedirectToAction("Index"));
     }
 }
Exemplo n.º 3
0
 public ActionResult EditTableRowsDelete(string records)
 {
     using (buildingworkorderCtl db = new buildingworkorderCtl()){
         foreach (string id in records.Trim(',').Split(','))
         {
             if (!string.IsNullOrEmpty(id.Trim()))
             {
                 db.delete(Convert.ToInt32(id));
             }
         }
         return(View());
     }
 }