public virtual BOArtifact MapEFToBO( Artifact ef) { var bo = new BOArtifact(); bo.SetProperties( ef.Id, ef.Created, ef.EnvironmentId, ef.Filename, ef.JSON, ef.ProjectId, ef.RelatedDocumentIds, ef.TenantId); return(bo); }
public virtual BOArtifact MapModelToBO( string id, ApiArtifactRequestModel model ) { BOArtifact boArtifact = new BOArtifact(); boArtifact.SetProperties( id, model.Created, model.EnvironmentId, model.Filename, model.JSON, model.ProjectId, model.RelatedDocumentIds, model.TenantId); return(boArtifact); }