public async Task <IActionResult> CertificatePreview(long id, bool isPreview) { var batch = await _certificateService.GetCertificateBatchByID(id, true); var data = batch.Certificates.OrderBy(e => e.SerialNo) .Select(e => CertificateHelper.Convert(e)) .ToList(); return(View("Certificate", new CertificateModel { IsPreview = isPreview, Title = batch.TemplateText, Certificates = data })); }
public async Task <IActionResult> Details(long id) { var model = await _certificateService.GetCertificateBatchByID(id, true); return(View(model)); }
public async Task <CertificateBatch> GetCertificateBatch(long id, bool includeAll = false) { return(await _certificateService.GetCertificateBatchByID(id, includeAll)); }