public JsonResult SignCertificaste(SignPrivateCertificateModel model) { PrivateCertificateProcessing processor = new PrivateCertificateProcessing(certificateRepository, configurationRepository, certificateProvider, authorizationLogic, templateLogic, audit); SignPrivateCertificateResult result = processor.SignCertificate(model, User); return(http.RespondSuccess(result)); }
private SignPrivateCertificateResult ProcessPendingSigningWorkflow(SignPrivateCertificateModel model) { SignPrivateCertificateResult result = new SignPrivateCertificateResult(PrivateCertificateRequestStatus.Pending); PendingCertificate pendingCertificate = new PendingCertificate(model); certificateRepository.Insert <PendingCertificate>(pendingCertificate); return(result); }