public virtual BOProject MapEFToBO( Project ef) { var bo = new BOProject(); bo.SetProperties( ef.Id, ef.AutoCreateRelease, ef.DataVersion, ef.DeploymentProcessId, ef.DiscreteChannelRelease, ef.IncludedLibraryVariableSetIds, ef.IsDisabled, ef.JSON, ef.LifecycleId, ef.Name, ef.ProjectGroupId, ef.Slug, ef.VariableSetId); return(bo); }
public virtual BOProject MapModelToBO( string id, ApiProjectRequestModel model ) { BOProject boProject = new BOProject(); boProject.SetProperties( id, model.AutoCreateRelease, model.DataVersion, model.DeploymentProcessId, model.DiscreteChannelRelease, model.IncludedLibraryVariableSetIds, model.IsDisabled, model.JSON, model.LifecycleId, model.Name, model.ProjectGroupId, model.Slug, model.VariableSetId); return(boProject); }