예제 #1
0
 public ActionResult Delete(Int32?Contactusdataid)
 {
     using (ContactUsDataCtl db = new ContactUsDataCtl())
     {
         db.delete(Contactusdataid);
         return(RedirectToAction("Index"));
     }
 }
예제 #2
0
 public ActionResult EditTableRowDelete(Int32?Contactusdataid)
 {
     using (ContactUsDataCtl db = new ContactUsDataCtl())
     {
         db.delete(Contactusdataid);
         return(RedirectToAction("EditTable"));
     }
 }
예제 #3
0
 public ActionResult EditTableRowsDelete(string records)
 {
     using (ContactUsDataCtl db = new ContactUsDataCtl())
     {
         foreach (string id in records.Trim(',').Split(','))
         {
             if (!string.IsNullOrEmpty(id.Trim()))
             {
                 db.delete(Convert.ToInt32(id));
             }
         }
         return(View());
     }
 }