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 <TodoVM> Get([FromQuery] TodoFilterVM filter) { return(appService.List(filter)); }