public async Task <IActionResult> AddProgress([FromBody] AddProgressInput request)
        {
            var currentUser = await _currentUserProvider.GetCurrentUser();

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

            request.UserId = currentUser.Id;

            return(await _dispatcher.DispatchAsync(request));
        }
Ejemplo n.º 2
0
 public async Task <IActionResult> Create([FromBody] CreateScheduleInput request) => await _dispatcher.DispatchAsync(request);
Ejemplo n.º 3
0
 public async Task <IActionResult> Get([FromQuery] GetScheduleInput request) =>
 await _dispatcher.DispatchAsync(request);
Ejemplo n.º 4
0
 public async Task<IActionResult> LoginAsync([FromBody] LoginInput request) =>
     await _dispatcher.DispatchAsync(request);
Ejemplo n.º 5
0
 public async Task <IActionResult> Get() => await _dispatcher.DispatchAsync(new GetGroupsInput());
Ejemplo n.º 6
0
 public async Task <IActionResult> SignIn([FromBody] SignInInput request)
 {
     return(await _dispatcher.DispatchAsync(request));
 }
Ejemplo n.º 7
0
 public async Task <IActionResult> SignInAsync([FromBody] AdminSignInInput request) =>
 await _dispatcher.DispatchAsync(request);
Ejemplo n.º 8
0
 public async Task <IActionResult> GetLessons(GetLessonsInput request)
 {
     return(await _dispatcher.DispatchAsync(request));
 }
Ejemplo n.º 9
0
 public async Task <IActionResult> CreateSubjectSertificate([FromBody] AddCertificateInput request)
 {
     request.UserId = (await _currentUserProvider.GetCurrentUser()).Id;
     return(await _dispatcher.DispatchAsync(request));
 }
Ejemplo n.º 10
0
 public async Task <IActionResult> BanUser([FromBody] BannInput request)
 {
     return(await _dispatcher.DispatchAsync(request));
 }
Ejemplo n.º 11
0
 public async Task <IActionResult> CreateComment([FromBody] AddCommentInput request)
 {
     return(await _dispatcher.DispatchAsync(request));
 }