public virtual ApiDeploymentRelatedMachineResponseModel MapBOToModel( BODeploymentRelatedMachine boDeploymentRelatedMachine) { var model = new ApiDeploymentRelatedMachineResponseModel(); model.SetProperties(boDeploymentRelatedMachine.Id, boDeploymentRelatedMachine.DeploymentId, boDeploymentRelatedMachine.MachineId); return(model); }
public virtual BODeploymentRelatedMachine MapEFToBO( DeploymentRelatedMachine ef) { var bo = new BODeploymentRelatedMachine(); bo.SetProperties( ef.Id, ef.DeploymentId, ef.MachineId); return(bo); }
public virtual DeploymentRelatedMachine MapBOToEF( BODeploymentRelatedMachine bo) { DeploymentRelatedMachine efDeploymentRelatedMachine = new DeploymentRelatedMachine(); efDeploymentRelatedMachine.SetProperties( bo.DeploymentId, bo.Id, bo.MachineId); return(efDeploymentRelatedMachine); }
public virtual BODeploymentRelatedMachine MapModelToBO( int id, ApiDeploymentRelatedMachineRequestModel model ) { BODeploymentRelatedMachine boDeploymentRelatedMachine = new BODeploymentRelatedMachine(); boDeploymentRelatedMachine.SetProperties( id, model.DeploymentId, model.MachineId); return(boDeploymentRelatedMachine); }