Beispiel #1
0
        public ActionResult FilesP(string id)
        {
            var data = _advertisementService.AdvertisementById(id);
            var file = System.IO.File.ReadAllBytes(data.Image);

            return(File(file, "image/jpeg"));
        }
Beispiel #2
0
 public ActionResult <Advertisement> GetAdvertisementById(string id)
 {
     return(_advertisementService.AdvertisementById(id));
 }