Beispiel #1
0
 public void AssignUserToProjectTask(int projectId, int taskId, string userId)
 {
     UserTaskAssignment assignment = new UserTaskAssignment();
     assignment.TaskID = taskId;
     assignment.UserID = userId;
     assignment.ProjectID = projectId;
     UserTaskAssignmentRepository.Add(assignment);
 }
Beispiel #2
0
        public void HandleTaskAdd(Base.Model.Task task, int projectId, string userId)
        {
            //Base.Model.Task task = Serializer.Serialize(form);
            task.ProjectID = projectId;
            TaskRepository.Add(task);

            UserTaskAssignment assignment = new UserTaskAssignment();
            assignment.UserID = userId;
            assignment.TaskID = task.ID;
            assignment.ProjectID = projectId;
            UserTaskAssignmentRepository.Add(assignment);
        }