Пример #1
0
        public async Task <OrientationDto> UpdateOrientationAsync(UpdateOrientationDto input)
        {
            var orientation = await _orientationRepo.GetAsync(input.Id);

            ObjectMapper.Map(input, orientation);
            var savedOrientation = await _orientationRepo.UpdateAsync(orientation);

            return(ObjectMapper.Map <OrientationDto>(savedOrientation));
        }
Пример #2
0
 public async Task <OrientationDto> Update(UpdateOrientationDto input)
 {
     return(await _orientationAppService.UpdateOrientationAsync(input));
 }