Example #1
0
 public ActionResult Delete(long id)
 {
     GuideSvc.MarkDeleted(id);
     GuideUserSvc.MarkDeleted(id);
     return(Json(new AjaxResult {
         status = "ok"
     }));
 }
Example #2
0
 public ActionResult BatchDelete(long[] selectedIds)
 {
     foreach (var id in selectedIds)
     {
         GuideSvc.MarkDeleted(id);
         GuideUserSvc.MarkDeleted(id);
     }
     return(Json(new AjaxResult {
         status = "ok"
     }));
 }