Ejemplo n.º 1
0
 public IActionResult GetAll([FromQuery] AssignmentQuery filters)
 {
     return(this.Ok(() => new
     {
         filters = filters.ToJson(),
         results = _AssignmentRepo.GetByFilters(filters).ToJsonArray()
     }, _Logger));
 }
        public IActionResult GetAll([FromQuery] AssignmentQuery filters)
        {
            return(this.Ok(() =>
            {
                JObject result = new JObject
                {
                    ["filters"] = filters.ToJson(),
                    ["results"] = _AssignmentRepo.GetByFilters(filters).ToJsonArray()
                };

                return result;
            }));
        }