public JsonResult DeleteHistory(int id) { var check = new HistoryDao().DeleteHistory(id); return(Json(new { status = check }, JsonRequestBehavior.AllowGet)); }
public JsonResult DeleteAllHistory(string ids) { var listId = new JavaScriptSerializer().Deserialize <List <int> >(ids); var check = new HistoryDao().DeleteHistorys(listId); return(Json(new { status = check }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetAll(string seach, int brandid, int typeid, int month, int page, int pageSize) { var result = new HistoryDao().GetAll(seach, brandid, typeid, month, page, pageSize); return(Json(new { totalRow = result.TotalRecord, data = result.Items }, JsonRequestBehavior.AllowGet)); }