Пример #1
0
        public async Task <IActionResult> GetPhoto(int id)
        {
            var photo = await repository.GetPhoto(id);

            var photoForReturn = mapper.Map <PhotoForReturnDto>(photo);

            return(Ok(photoForReturn));
        }