public async Task <HistoryDTO> GetHistoryAsync(FilterHistoryDTO filter) { Console.WriteLine(filter.DocumentID.ToString()); Console.WriteLine(filter.From.ToString()); Console.WriteLine(filter.To.ToString()); Console.WriteLine(filter.Reversed); var history = await Task.FromResult(new HistoryEntity()); return(mapper.Map <HistoryDTO>(history)); }
public async Task <ActionResult <DocumentDTO> > GetHistory([FromQuery] FilterHistoryDTO filter) { var document = await this.HistoryService.GetHistoryAsync(filter); return(Ok(document)); }