public ActionResult Image() { var p = new ImageReport(); p.Main(); return(Ok()); }
private PdfPCell CreateCellHeader(string headerText, string iconText) { PdfPCell cell = new PdfPCell(); Font lato = FontFactory.GetFont("Lato", 8f); lato.Color = BaseColor.WHITE; Chunk text = new Chunk(" " + headerText, lato); Paragraph p = new Paragraph(); p.Add(new Chunk(ImageReport.GetResultTableIcon(iconText), 0, 0)); p.Add(text); cell.AddElement(p); cell.BorderColor = new BaseColor(12, 123, 234); cell.BackgroundColor = new BaseColor(12, 123, 234); cell.HorizontalAlignment = Element.ALIGN_CENTER; cell.VerticalAlignment = Element.ALIGN_MIDDLE; return(cell); }
public JsonResult SaveReport([FromBody] ImageReport report) { _databaseConnection.Add(report); _databaseConnection.SaveChanges(); return(Json(report)); }