public ActionResult FilesP(string id) { var data = _advertisementService.AdvertisementById(id); var file = System.IO.File.ReadAllBytes(data.Image); return(File(file, "image/jpeg")); }
public ActionResult <Advertisement> GetAdvertisementById(string id) { return(_advertisementService.AdvertisementById(id)); }