public virtual ApiMachineRefTeamResponseModel MapBOToModel( BOMachineRefTeam boMachineRefTeam) { var model = new ApiMachineRefTeamResponseModel(); model.SetProperties(boMachineRefTeam.Id, boMachineRefTeam.MachineId, boMachineRefTeam.TeamId); return(model); }
public virtual BOMachineRefTeam MapEFToBO( MachineRefTeam ef) { var bo = new BOMachineRefTeam(); bo.SetProperties( ef.Id, ef.MachineId, ef.TeamId); return(bo); }
public virtual MachineRefTeam MapBOToEF( BOMachineRefTeam bo) { MachineRefTeam efMachineRefTeam = new MachineRefTeam(); efMachineRefTeam.SetProperties( bo.Id, bo.MachineId, bo.TeamId); return(efMachineRefTeam); }
public virtual BOMachineRefTeam MapModelToBO( int id, ApiMachineRefTeamRequestModel model ) { BOMachineRefTeam boMachineRefTeam = new BOMachineRefTeam(); boMachineRefTeam.SetProperties( id, model.MachineId, model.TeamId); return(boMachineRefTeam); }