public virtual BODeploymentHistory MapEFToBO( DeploymentHistory ef) { var bo = new BODeploymentHistory(); bo.SetProperties( ef.DeploymentId, ef.ChannelId, ef.ChannelName, ef.CompletedTime, ef.Created, ef.DeployedBy, ef.DeploymentName, ef.DurationSeconds, ef.EnvironmentId, ef.EnvironmentName, ef.ProjectId, ef.ProjectName, ef.ProjectSlug, ef.QueueTime, ef.ReleaseId, ef.ReleaseVersion, ef.StartTime, ef.TaskId, ef.TaskState, ef.TenantId, ef.TenantName); return(bo); }
public virtual BODeploymentHistory MapModelToBO( string deploymentId, ApiDeploymentHistoryRequestModel model ) { BODeploymentHistory boDeploymentHistory = new BODeploymentHistory(); boDeploymentHistory.SetProperties( deploymentId, model.ChannelId, model.ChannelName, model.CompletedTime, model.Created, model.DeployedBy, model.DeploymentName, model.DurationSeconds, model.EnvironmentId, model.EnvironmentName, model.ProjectId, model.ProjectName, model.ProjectSlug, model.QueueTime, model.ReleaseId, model.ReleaseVersion, model.StartTime, model.TaskId, model.TaskState, model.TenantId, model.TenantName); return(boDeploymentHistory); }