Beispiel #1
0
 public FileContentResult Barcode(string id)
 {
     try
     {
         var code = new Code39BarCode(id);
         return new FileContentResult(code.Generate(), "image/png");
     }
     catch (Exception)
     {
         var code = new Code39BarCode("N/A");
         return new FileContentResult(code.Generate(), "image/png");
     }
 }
Beispiel #2
0
 public FileContentResult Barcode(string id)
 {
     var code = new Code39BarCode(id);
     return new FileContentResult(code.Generate(), "image/png");
 }