コード例 #1
0
        public async Task <IActionResult> GetProgressCurrent([FromQuery] ProgressesByIdInput request)
        {
            var currentUser = await _currentUserProvider.GetCurrentUser();

            if (currentUser is null)
            {
                return(Json(ActionOutput.Error("Пользователь не найден")));
            }

            request.SetUserId(currentUser.Id);

            return(await _dispatcher.DispatchAsync(request));
        }
コード例 #2
0
        public async Task <IActionResult> GetProgress([FromQuery] ProgressesByIdInput request, [FromRoute] int userid)
        {
            request.SetUserId(userid);

            return(await _dispatcher.DispatchAsync(request));
        }