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
            }));
        }
示例#2
0
        public async Task <IActionResult> Details(long id)
        {
            var model = await _certificateService.GetCertificateBatchByID(id, true);

            return(View(model));
        }
示例#3
0
 public async Task <CertificateBatch> GetCertificateBatch(long id, bool includeAll = false)
 {
     return(await _certificateService.GetCertificateBatchByID(id, includeAll));
 }