public ActionResult Show(int id)
        {
            PriceList price = _priceListRepository.GetById(id);
            string    path  = HttpContext.Server.MapPath(price.Path);
            string    mime  = MimeMapping.GetMimeMapping(price.Path);

            return(File(path, mime));
        }
Esempio n. 2
0
 public async Task <PriceList> GetById(Guid id)
 {
     return(await _priceListRepository.GetById(id));
 }