public IActionResult Compose()
        {
            var userid = HttpContext.Session.GetInt32("userId");

            ViewBag.user = dbContext.Users.FirstOrDefault(u => u.UserID == userid).FullName;
            ManagerMessage managerMessage = new ManagerMessage(dbContext);

            ViewBag.count = managerMessage.GetCountMessageStatus(dbContext.Users.FirstOrDefault(u => u.UserID == userid).UserID.Value);
            return(View());
        }
        public IActionResult EmailDetailInbox(int messageID)
        {
            if (messageID == 0 || messageID.ToString() == null)
            {
                return(Redirect("/Message/Inbox"));
            }
            var userid = HttpContext.Session.GetInt32("userId");

            ViewBag.user = dbContext.Users.FirstOrDefault(u => u.UserID == userid).FullName;
            ManagerMessage managerMessage = new ManagerMessage(dbContext);

            ViewBag.count         = managerMessage.GetCountMessageStatus(dbContext.Users.FirstOrDefault(u => u.UserID == userid).UserID.Value);
            ViewBag.MessageDetail = managerMessage.GetMessageDetail(dbContext.Users.FirstOrDefault(u => u.UserID == userid).UserID.Value, messageID);
            if (ViewBag.MessageDetail == null)
            {
                return(Redirect("/Message/Inbox"));
            }
            return(View());
        }