public async Task <IActionResult> GetPhoto(int id) { var photoForReturn = await _dating.GetPhoto(id); var Photo = _autoMapper.Map <PhotoForReturnDto>(photoForReturn); return(Ok(Photo)); }
public async Task <IActionResult> GetPhoto(int id) { var photoFromRepo = await _repo.GetPhoto(id); var photo = _mapper.Map <PhotoForReturnDto>(photoFromRepo); return(Ok(photo)); }