Example #1
0
        public JsonResult Get(int id)
        {
            MessageGroupBL       messageGroupBL   = new MessageGroupBL();
            MessageDetailBL      messageDetailBL  = new MessageDetailBL();
            MessageGroup         messageGroupInfo = messageGroupBL.GetById(id);
            IEnumerable <object> messageInfo      = messageDetailBL.GetByGroupID(id);

            return(Json(new { messageGroupID = messageGroupInfo.MessageGroupID, studentID = messageGroupInfo.StudentID, content = messageGroupInfo.Content, childMessages = messageInfo }));
        }
Example #2
0
        public ReturnListModel <MessageGroup> GetAllByStudent(string id, SearchModel searchModel)
        {
            MessageGroupBL messageGroupBL = new MessageGroupBL();

            return(new ReturnListModel <MessageGroup>(messageGroupBL.GetAllByStudent(id, searchModel)));
        }