示例#1
0
        public virtual ApiDeploymentRelatedMachineResponseModel MapBOToModel(
            BODeploymentRelatedMachine boDeploymentRelatedMachine)
        {
            var model = new ApiDeploymentRelatedMachineResponseModel();

            model.SetProperties(boDeploymentRelatedMachine.Id, boDeploymentRelatedMachine.DeploymentId, boDeploymentRelatedMachine.MachineId);

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

            bo.SetProperties(
                ef.Id,
                ef.DeploymentId,
                ef.MachineId);
            return(bo);
        }
示例#3
0
        public virtual DeploymentRelatedMachine MapBOToEF(
            BODeploymentRelatedMachine bo)
        {
            DeploymentRelatedMachine efDeploymentRelatedMachine = new DeploymentRelatedMachine();

            efDeploymentRelatedMachine.SetProperties(
                bo.DeploymentId,
                bo.Id,
                bo.MachineId);
            return(efDeploymentRelatedMachine);
        }
示例#4
0
        public virtual BODeploymentRelatedMachine MapModelToBO(
            int id,
            ApiDeploymentRelatedMachineRequestModel model
            )
        {
            BODeploymentRelatedMachine boDeploymentRelatedMachine = new BODeploymentRelatedMachine();

            boDeploymentRelatedMachine.SetProperties(
                id,
                model.DeploymentId,
                model.MachineId);
            return(boDeploymentRelatedMachine);
        }