public async Task Get() { ITransferExcelService transferExcelService = _serviceProvider.GetService <ITransferExcelService>(); var listExcelRoeDto1 = await transferExcelService.GetAsync(DateTime.Now); var result = listExcelRoeDto1.ToList(); }
public async Task <IEnumerable <ExcelRowDto> > Get(DateTime?createDate) { if (createDate == null) { throw new BadReadException("CreateDate Not Found"); } return(await _transferExcelService.GetAsync(createDate.Value)); }