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); }
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)); }