public async Task <IActionResult> GetPhotos(int adId, int photoId) { var bytes = await _advertisementService.GetAdPhoto(adId, photoId); if (bytes != null) { return(File(bytes, "image/jpeg")); } return(NotFound()); }
public async Task <IActionResult> GetPhotos(int adId, int photoId) { var bytes = await _advertisementService.GetAdPhoto(adId, photoId); if (bytes != null) { return(File(bytes, "image/jpeg")); } return(NotFound()); }