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); }