示例#1
0
        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);
        }
示例#2
0
 public IEnumerable <TodoVM> Get([FromQuery] TodoFilterVM filter)
 {
     return(appService.List(filter));
 }