コード例 #1
0
 public ActionResult DeleteCheckList(List <int> collection)
 {
     try
     {
         bool             success   = false;
         string           result    = null;
         ConfigurationDAL configDAL = new ConfigurationDAL();
         if (collection.Count != 0)
         {
             foreach (var item in collection)
             {
                 success = configDAL.DeleteCheckList(item);
                 result  = "Deleted";
             }
         }
         return(Json(new { resultMesssage = result, status = success }, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         throw;
     }
 }