Beispiel #1
0
 public ActionResult Delete(string ids)
 {
     if (!string.IsNullOrEmpty(ids))
     {
         if (infoService.InfoesDelete(ids, out msg) > 0)
         {
             return(Json(new AjaxResult()
             {
                 success = true, msg = deleteSuccess, url = Url.Action("Index")
             }));
         }
         else
         {
             msg = errorOutPutToPage ? msg : deleteFailure;
             return(Json(new AjaxResult()
             {
                 success = false, msg = msg
             }));
         }
     }
     else
     {
         return(Json(new AjaxResult()
         {
             success = false, msg = didnotchoosedata
         }));
     }
 }