public IActionResult FilteredList([FromBody] ResourceGetRequest query) => ReturnBadRequestIfThrowError(() => { var resources = _resourcesService.GetResources(query, UserId); Response.Headers.Add("X-Pagination", JsonConvert.SerializeObject(resources.PagingData())); return(resources); });
public async Task <List <ResourceDTO> > GetResources() { var resources = await _resourceService.GetResources(); return(resources); }