public Stream GetImage(int id)
 {
     return(service.GetCategoryImageJpg(id));
 }
Example #2
0
        public IActionResult GetImage(int id)
        {
            Stream resultStream = service.GetCategoryImageJpg(id);

            return(new FileStreamResult(resultStream, "image/jpeg"));
        }