public virtual BOServerTask MapEFToBO( ServerTask ef) { var bo = new BOServerTask(); bo.SetProperties( ef.Id, ef.CompletedTime, ef.ConcurrencyTag, ef.Description, ef.DurationSeconds, ef.EnvironmentId, ef.ErrorMessage, ef.HasPendingInterruptions, ef.HasWarningsOrErrors, ef.JSON, ef.Name, ef.ProjectId, ef.QueueTime, ef.ServerNodeId, ef.StartTime, ef.State, ef.TenantId); return(bo); }
public virtual BOServerTask MapModelToBO( string id, ApiServerTaskRequestModel model ) { BOServerTask boServerTask = new BOServerTask(); boServerTask.SetProperties( id, model.CompletedTime, model.ConcurrencyTag, model.Description, model.DurationSeconds, model.EnvironmentId, model.ErrorMessage, model.HasPendingInterruptions, model.HasWarningsOrErrors, model.JSON, model.Name, model.ProjectId, model.QueueTime, model.ServerNodeId, model.StartTime, model.State, model.TenantId); return(boServerTask); }
public virtual ServerTask MapBOToEF( BOServerTask bo) { ServerTask efServerTask = new ServerTask(); efServerTask.SetProperties( bo.CompletedTime, bo.ConcurrencyTag, bo.Description, bo.DurationSeconds, bo.EnvironmentId, bo.ErrorMessage, bo.HasPendingInterruptions, bo.HasWarningsOrErrors, bo.Id, bo.JSON, bo.Name, bo.ProjectId, bo.QueueTime, bo.ServerNodeId, bo.StartTime, bo.State, bo.TenantId); return(efServerTask); }
public virtual ApiServerTaskResponseModel MapBOToModel( BOServerTask boServerTask) { var model = new ApiServerTaskResponseModel(); model.SetProperties(boServerTask.Id, boServerTask.CompletedTime, boServerTask.ConcurrencyTag, boServerTask.Description, boServerTask.DurationSeconds, boServerTask.EnvironmentId, boServerTask.ErrorMessage, boServerTask.HasPendingInterruptions, boServerTask.HasWarningsOrErrors, boServerTask.JSON, boServerTask.Name, boServerTask.ProjectId, boServerTask.QueueTime, boServerTask.ServerNodeId, boServerTask.StartTime, boServerTask.State, boServerTask.TenantId); return(model); }