Exemplo n.º 1
0
        public virtual async Task <ResourceAppointmentDto> UpdateAsync(Guid id, ResourceAppointmentUpdateDto input)
        {
            var resourceAppointment = await _resourceAppointmentRepository.GetAsync(id);

            _objectMapper.Map(input, resourceAppointment);
            resourceAppointment = await _resourceAppointmentRepository.UpdateAsync(resourceAppointment);

            return(_objectMapper.Map <ResourceAppointment, ResourceAppointmentDto>(resourceAppointment));
        }
Exemplo n.º 2
0
 public async Task <ResourceAppointmentDto> UpdateAsync(Guid id, ResourceAppointmentUpdateDto input)
 {
     return(await _resourceAppointmentAppService.UpdateAsync(id, input));
 }