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