public virtual BOCertificate MapEFToBO( Certificate ef) { var bo = new BOCertificate(); bo.SetProperties( ef.Id, ef.Archived, ef.Created, ef.DataVersion, ef.EnvironmentIds, ef.JSON, ef.Name, ef.NotAfter, ef.Subject, ef.TenantIds, ef.TenantTags, ef.Thumbprint); return(bo); }
public virtual BOCertificate MapModelToBO( string id, ApiCertificateRequestModel model ) { BOCertificate boCertificate = new BOCertificate(); boCertificate.SetProperties( id, model.Archived, model.Created, model.DataVersion, model.EnvironmentIds, model.JSON, model.Name, model.NotAfter, model.Subject, model.TenantIds, model.TenantTags, model.Thumbprint); return(boCertificate); }