public async Task <IActionResult> Search(string freeText = null, string status = null, int groupId = 0, int assigneeId = 0, int page = 1, int limit = 10, DateTime?fromDate = null, DateTime?toDate = null, int dateType = 1, int processStatus = -1) { var result = await _bizRevoke.SearchAsync(fromDate, toDate, dateType, groupId, assigneeId, status, processStatus, freeText, page, limit); return(ToResponse(result)); }
public async Task <JsonResult> Search(string freeText = null, string status = null, int groupId = 0, int assigneeId = 0, int page = 1, int limit = 10, string fromDate = null, string toDate = null, int loaiNgay = 1) { DateTime dtFromDate = DateTime.MinValue, dtToDate = DateTime.Now.AddDays(3); if (fromDate != "") { dtFromDate = DateTimeFormat.ConvertddMMyyyyToDateTimeNew(fromDate); } if (toDate != "") { dtToDate = DateTimeFormat.ConvertddMMyyyyToDateTimeNew(toDate); } var result = await _bizRevokeDebt.SearchAsync(GlobalData.User.IDUser, freeText, status, page, limit, groupId, assigneeId, dtFromDate, dtToDate, loaiNgay); return(ToJsonResponse(true, null, result)); }