public virtual BOMachine MapEFToBO( Machine ef) { var bo = new BOMachine(); bo.SetProperties( ef.Id, ef.CommunicationStyle, ef.EnvironmentIds, ef.Fingerprint, ef.IsDisabled, ef.JSON, ef.MachinePolicyId, ef.Name, ef.RelatedDocumentIds, ef.Roles, ef.TenantIds, ef.TenantTags, ef.Thumbprint); return(bo); }
public virtual BOMachine MapModelToBO( string id, ApiMachineRequestModel model ) { BOMachine boMachine = new BOMachine(); boMachine.SetProperties( id, model.CommunicationStyle, model.EnvironmentIds, model.Fingerprint, model.IsDisabled, model.JSON, model.MachinePolicyId, model.Name, model.RelatedDocumentIds, model.Roles, model.TenantIds, model.TenantTags, model.Thumbprint); return(boMachine); }