Exemplo n.º 1
0
        public void UpdateProjectActivity(ActivityModel goalModel)
        {
            // Mapp to backend model
            var activity = new ProjectActivity();

            if (goalModel != null)
            {
                activity = ApplicationMapper.MapProjectActivity(goalModel);
            }
            // Create P.Activity
            projectRepository.UpdateProjectActivity(activity);
        }
Exemplo n.º 2
0
        public int CreateProjectActivity(ActivityModel activityModel)
        {
            // Mapp to backend model
            var activity = new ProjectActivity();

            if (activityModel != null)
            {
                activity = ApplicationMapper.MapProjectActivity(activityModel);
            }
            // Create P.Goal
            return(projectRepository.CreateProjectActivity(activity));
        }