Ejemplo n.º 1
0
        public void UpdateProjectRisk(RiskModel riskModel)
        {
            // Mapp to backend model
            var risk = new ProjectRisk();

            if (riskModel != null)
            {
                risk = ApplicationMapper.MapProjectRisk(riskModel);
            }
            // Create P.Risk
            projectRepository.UpdateProjectRisk(risk);
        }
Ejemplo n.º 2
0
        public int CreateProjectRisk(RiskModel riskModel)
        {
            // Mapp to backend model
            var risk = new ProjectRisk();

            if (riskModel != null)
            {
                risk = ApplicationMapper.MapProjectRisk(riskModel);
            }
            // Create P.Risk
            return(projectRepository.CreateProjectRisk(risk));
        }