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