Пример #1
0
        public async Task <IActionResult> GetTools([FromQuery] ToolParameters toolParameters)
        {
            var tools = await _repository.GetAllToolsAsync(toolParameters, false);

            Response.Headers.Add("X-Pagination", JsonConvert.SerializeObject(tools.MetaData));
            var toolsDto = _mapper.Map <IEnumerable <ToolDto> >(tools);

            return(Ok(toolsDto));
        }