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