public PartialViewResult _Mailbox(MaxIdForm MaxId) { int EmployeeId = SessionUser.GetUser().Id; IEnumerable <MailboxForm> form = MessageService.GetResponsesToEmployeeWithoutSome(EmployeeId, MaxId.Max_id).Select(message => new MailboxForm(message, EmployeeId)); return(PartialView(form)); }
public PartialViewResult _MessagesTask(MaxIdForm form, int TaskId) { if (form.Max_id == -1) { return(_Messages(MessageService.GetTaskMessages(TaskId))); } else { return(_Messages(MessageService.GetTaskMessagesWithoutSome(TaskId, form.Max_id))); } }
public PartialViewResult _MessagesProject(MaxIdForm form, int ProjectId) { if (form.Max_id == -1) { return(_Messages(MessageService.GetProjectMessages(ProjectId))); } else { return(_Messages(MessageService.GetProjectMessagesWithoutSome(ProjectId, form.Max_id))); } }
public PartialViewResult _MessagesEmployee(MaxIdForm form, int EmployeeId) { if (form.Max_id == -1) { return(_Messages(MessageService.GetMyDiscussionWithEmployee(SessionUser.GetUser().Id, EmployeeId))); } else { return(_Messages(MessageService.GetMyDiscussionWithEmployeeWithoutSome(SessionUser.GetUser().Id, EmployeeId, form.Max_id))); } }