public async Task <StudentGroupDto> UpdateStudentGroupAsync(long id, StudentGroupDto updateDto, string accessToken)
        {
            var updateStudentGroupTask = _apiUtil.PutAsync($"{_config.Value.Urls.Api.Https}/api/student_groups/{id}", _mapper.Map <UpdateStudentGroupDto>(updateDto), accessToken);


            await updateStudentGroupTask;

            return(updateDto);
        }
 public async Task <UpdateMentorDto> UpdateMentorAsync(long id, UpdateMentorDto UpdateDto, string accessToken)
 {
     return(await
            _apiUtil.PutAsync($"{_config.Value.Urls.Api.Https}/api/mentors/{id}", UpdateDto, accessToken));
 }
示例#3
0
 public async Task UpdateTheme(long id, UpdateThemeDto UpdateDto, string accessToken)
 {
     await
     _apiUtil.PutAsync <UpdateThemeDto>($"{_config.Value.Urls.Api.Https}/api/themes/{id}", UpdateDto, accessToken);
 }
        public async Task <UpdateStudentDto> UpdateStudentAsync(long id, UpdateStudentDto UpdateDto, string accessToken)
        {
            var updatedStudent = await _apiUtil.PutAsync($"{_config.Value.Urls.Api.Https}/api/students/{id}", UpdateDto, accessToken);

            return(updatedStudent);
        }