示例#1
0
        public virtual ApiMachineRefTeamResponseModel MapBOToModel(
            BOMachineRefTeam boMachineRefTeam)
        {
            var model = new ApiMachineRefTeamResponseModel();

            model.SetProperties(boMachineRefTeam.Id, boMachineRefTeam.MachineId, boMachineRefTeam.TeamId);

            return(model);
        }
示例#2
0
        public virtual BOMachineRefTeam MapEFToBO(
            MachineRefTeam ef)
        {
            var bo = new BOMachineRefTeam();

            bo.SetProperties(
                ef.Id,
                ef.MachineId,
                ef.TeamId);
            return(bo);
        }
示例#3
0
        public virtual MachineRefTeam MapBOToEF(
            BOMachineRefTeam bo)
        {
            MachineRefTeam efMachineRefTeam = new MachineRefTeam();

            efMachineRefTeam.SetProperties(
                bo.Id,
                bo.MachineId,
                bo.TeamId);
            return(efMachineRefTeam);
        }
示例#4
0
        public virtual BOMachineRefTeam MapModelToBO(
            int id,
            ApiMachineRefTeamRequestModel model
            )
        {
            BOMachineRefTeam boMachineRefTeam = new BOMachineRefTeam();

            boMachineRefTeam.SetProperties(
                id,
                model.MachineId,
                model.TeamId);
            return(boMachineRefTeam);
        }