public ActionResult _DiscussionEmployee(int EmployeeId)
        {
            DiscussionForm form = new DiscussionForm {
                ToEmployee = EmployeeId
            };

            return(_Discussion(MessageService.GetMyDiscussionWithEmployee(SessionUser.GetUser().Id, EmployeeId), form));
        }
        public ActionResult _DiscussionTeam(int TeamId)
        {
            DiscussionForm form = new DiscussionForm {
                ToTeam = TeamId
            };

            return(_Discussion(MessageService.GetTeamMessages(TeamId), form));
        }
        public ActionResult _DiscussionTask(int TaskId)
        {
            DiscussionForm form = new DiscussionForm {
                ToTask = TaskId
            };

            return(_Discussion(MessageService.GetTaskMessages(TaskId), form));
        }
        public ActionResult _DiscussionProject(int ProjectId)
        {
            DiscussionForm form = new DiscussionForm {
                ToProject = ProjectId
            };

            return(_Discussion(MessageService.GetProjectMessages(ProjectId), form));
        }
Пример #5
0
        /// <summary>
        /// This function opens the discusison form for the assignment.
        /// </summary>
        /// <param name="a_sender">It holds the sender.</param>
        /// <param name="a_event">It holds the event args.</param>
        private void DiscussionTile_Click(object a_sender, EventArgs a_event)
        {
            DiscussionForm discForm = new DiscussionForm(m_currentAssgn, m_studentEmail);

            discForm.ShowDialog();
        }
 private ActionResult _Discussion(IEnumerable <C.Message> messages, DiscussionForm form)
 {
     form.Messages = FillAndAddChildren(messages, null);
     return(PartialView("_Discussion", form));
 }