public void UpdateProjectGoal(GoalModel goalModel) { // Mapp to backend model var goal = new ProjectGoal(); if (goalModel != null) { goal = ApplicationMapper.MapProjectGoal(goalModel); } // Create P.Goal projectRepository.UpdateProjectGoal(goal); }
public int CreateProjectGoal(GoalModel goalModel) { // Mapp to backend model var goal = new ProjectGoal(); if (goalModel != null) { goal = ApplicationMapper.MapProjectGoal(goalModel); } // Create P.Goal return(projectRepository.CreateProjectGoal(goal)); }