Exemple #1
0
        public async Task <IActionResult> GetTrails([FromQuery] TrailsParams trailsParams)
        {
            var trails = await repository.GetAllTrailsAsync(trailsParams);

            Response.AddPagination(trails.CurrentPage, trails.PageSize, trails.TotalCount,
                                   trails.TotalPages);

            return(Ok(trails));
        }