コード例 #1
0
 public ActionResult MultiplePorterDelete(IEnumerable <int> portersToDelete)
 {
     try
     {
         if (portersToDelete != null)
         {
             _helperService.DeleteMultipleHelpers(portersToDelete);
             return(RedirectToAction("Index", "Helper", new { message = "Success", items = portersToDelete.Count() }));
         }
         else
         {
             return(RedirectToAction("Index", "Helper", new { message = "Error" }));
         }
     }
     catch (Exception ex)
     {
         return(Json(ex.Message));
     }
 }