コード例 #1
0
 public ActionResult EditTableRowDelete(Int32 Locationphotoid)
 {
     using (locationphotoCtl db = new locationphotoCtl()){
         db.delete(Locationphotoid);
         return(RedirectToAction("EditTable"));
     }
 }
コード例 #2
0
 public ActionResult Delete(Int32 Locationphotoid)
 {
     using (locationphotoCtl db = new locationphotoCtl()){
         db.delete(Locationphotoid);
         return(RedirectToAction("Index"));
     }
 }
コード例 #3
0
 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());
     }
 }