Exemplo n.º 1
0
        public async Task <ActionResult> GetCurentUserRunsAsync([FromQuery(Name = "$filter")] string filter,
                                                                [FromQuery] int?pageNumber,
                                                                [FromQuery] int?pageSize)
        {
            var currentUserId = HttpContext.GetCurrentUserId();

            var response = await _runService.GetRunsAsync(currentUserId, filter, pageNumber, pageSize);

            return(StatusCode(StatusCodes.Status200OK, response));
        }