Пример #1
0
        public async Task <CallWebRowDto> UpdateSurvey(Employee employee)
        {
            var callWebPatchDto = CallWebPatchDto.FromEmployee(employee);
            var callWebDto      = await CallWebApi.Patch(callWebPatchDto);

            return(callWebDto);
        }
Пример #2
0
        public async Task <CallWebRowDto> Patch(CallWebPatchDto patchDto)
        {
            var content = ToJsonContent(patchDto);

            var response = await GetClient()
                           .PatchAsync($"{BaseUrl}{patchDto.Telkey}", content);

            var callWebDto = await CallWebRowFromResponse(response);

            return(callWebDto);
        }