public Results.GenericResult <IEnumerable <ToDoDto> > Get([FromQuery] ToDoFilterDto filter) { var result = new Results.GenericResult <IEnumerable <ToDoDto> >(); try { result.Result = appService.List(filter); result.Success = true; } catch (Exception ex) { result.Errors = new string[] { ex.Message }; } return(result); }
public IEnumerable <ToDoDTO> Get([FromQuery] ToDoFilterDTO filter) { return(_appService.List(filter)); }