public async Task <MentorDto> AddMentorAsync(long id, string accessToken)
 {
     return(await
            _apiUtil.CreateAsync <MentorDto>($"{_config.Value.Urls.Api.Https}/api/mentors/{id}", null, accessToken));
 }
Esempio n. 2
0
 public async Task AddThemeAsync(CreateThemeDto themeDto, string accessToken)
 {
     await
     _apiUtil.CreateAsync <CreateThemeDto>($"{_config.Value.Urls.Api.Https}/api/themes", themeDto, accessToken);
 }
        public async Task <CreateStudentGroupDto> AddStudentGroupAsync(long id, CreateStudentGroupDto addDto, string accessToken)
        {
            var createStudentGroup = await _apiUtil.CreateAsync($"{_config.Value.Urls.Api.Https}/api/student_groups", addDto, accessToken);

            return(createStudentGroup);
        }
        public async Task <StudentDto> AddStudentAsync(long id, string accessToken)
        {
            var addedStudentTask = await _apiUtil.CreateAsync <StudentDto>($"{_config.Value.Urls.Api.Https}/api/students/{id}", null, accessToken);

            return(addedStudentTask);
        }