public Task<DanhSachRequestDeviceOutput> GetAllRequest(FilterRequestDeviceInput input) { int total = _requestDeviceTable.GetTotal(input.ClientId, input.Keyword, input.DateFrom, input.DateTo); IEnumerable<RequestDevice> paging = _requestDeviceTable.GetPaging(input.PageSize, input.PageNumber, input.ClientId, input.Keyword, input.DateFrom, input.DateTo); return Task.FromResult(new DanhSachRequestDeviceOutput { DanhSachRequestDevices = paging, TotalCount = total }); }
public async Task<DanhSachRequestDeviceOutput> GetAllRequest(FilterRequestDeviceInput filter) { try { return await _deviceBll.GetAllRequest(filter); } catch (Exception ex) { ErrorStore.LogExceptionWithoutContext(ex); } return new DanhSachRequestDeviceOutput(); }