public ActionResult <IEnumerable <CertificateInfo> > GetTrustedCertificates([FromServices] ISafeguardLogic safeguard) { var trustedCertificates = safeguard.GetTrustedCertificates(); return(Ok(trustedCertificates)); }