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)); }
public async Task <IActionResult> GetProgress([FromQuery] ProgressesByIdInput request, [FromRoute] int userid) { request.SetUserId(userid); return(await _dispatcher.DispatchAsync(request)); }