public Task<DanhSachDeviceOutput> GetAll(FilterDeviceInput input) { int total = _deviceTable.GetTotal(input.ClientId, input.Keyword); IEnumerable<Device> paging = _deviceTable.GetPaging(input.PageSize, input.PageNumber, input.ClientId, input.Keyword); return Task.FromResult(new DanhSachDeviceOutput { DanhSachDevices = paging, TotalCount = total }); }
public async Task<DanhSachDeviceOutput> GetAll(FilterDeviceInput filter) { try { return await _deviceBll.GetAll(filter); } catch (Exception ex) { ErrorStore.LogExceptionWithoutContext(ex); } return new DanhSachDeviceOutput(); }