public async Task <IActionResult> GetPhoto(int id) { var photo = await repository.GetPhoto(id); var photoForReturn = mapper.Map <PhotoForReturnDto>(photo); return(Ok(photoForReturn)); }