public PartialViewResult SearchCertificateDocuments(int certificateId, int selectedPage)
 {
     CertificateDetailModel certificateDetailModel = new CertificateDetailModel();
     certificateDetailModel.GetCertificateDetail(certificateId, false);
     certificateDetailModel.Certificate = new Certificate { CertificateId = certificateId };
     return PartialView("_CertificateDocument", certificateDetailModel);
 }
 public ActionResult ViewCertificateDetail(int certificateId)
 {
     CertificateDetailModel certificateDetailModel = new CertificateDetailModel();
     //Get the certificate data with its documents
     certificateDetailModel.GetCertificateDetail(certificateId,true);
     return View("Certificate",certificateDetailModel);
 }