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"); } }
public FileContentResult Barcode(string id) { var code = new Code39BarCode(id); return new FileContentResult(code.Generate(), "image/png"); }