示例#1
0
        public async Task <ActionResult> CreateCurrentUserRun([FromBody] RunCreateRequest request)
        {
            var currentUserId = HttpContext.GetCurrentUserId();

            var response = await _runService.CreateRunAsync(currentUserId, request);

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