コード例 #1
0
        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);
        }
コード例 #2
0
        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));
        }