示例#1
0
        public async Task <IActionResult> GetListAsync(int limit = 10, int offset = 0, SortBy sortBy = SortBy.Id)
        {
            if (limit < 0 || offset < 0 || !Enum.IsDefined(typeof(SortBy), sortBy))
            {
                return(new BadRequestObjectResult("Invalid query string"));
            }
            var result = await _service.GetListofListsAsync(limit, offset, (Entities.Enums.SortBy) sortBy).ConfigureAwait(false);

            return(new ObjectResult(result.ToCoordinateListContainerDto()));
        }