ActionResult IDriver.CertDownload(string thumb) { CertificateResponse response = service.GetCertificate(thumb, Guid.Empty, token); return(new WebDavDownloadFileResult(new DirInfo() { ContentLenght = response.CertificateFileBytes.Length, DisplayName = thumb + ".cer" }, response.CertificateFileBytes, true)); }
public ActionResult CertDownload(string thumb) { CertificateResponse response = service.GetCertificate(thumb, Guid.Empty, token); return(Json(response)); }