public ActionResult Delete(int id) { rs r; try { Ban Ban = _BanServ.GetEntry(id); _BanServ.Delete(Ban); _BanServ.Save(); r = rs.T("Ok"); } catch (Exception ex) { r = rs.F("Lỗi: " + ex.Message); } return(Json(r, JsonRequestBehavior.DenyGet)); }
public bool Delete(string id) { return(_res.Delete(id)); }