示例#1
0
        public bool AddProduction(UpdateDeploymentEnvironmentToWebsite dto)
        {
            if (!IsExits())
            {
                return(false);
            }
            var model = new DeploymentEnviromentModel()
            {
                Website = _website
            };

            if (_websiteRepository.AddOrUpdateProduction(ewhMapper.ToEntity(model, dto)))
            {
                return(true);
            }
            return(false);
        }