public ActionResult DeleteAll(long[] selectIDs) { for (int i = 0; i < selectIDs.Length; i++) { Irole.MarkDeleted(selectIDs[i]); } ViewBag.Tocount = Irole.GetTotalCount(); return(Json("ok")); }
public ActionResult Delete(long id) { bool i = Irole.MarkDeleted(id); if (i) { ViewBag.Tocount = Irole.GetTotalCount(); return(Json("ok")); } else { return(Json("no")); } }