public ActionResult ReplyBack(SecondUserReplyMessage twoModelClass)  // here goes messageID from inbox
        {
            {
                Message msg        = new Message();
                string  message    = twoModelClass.replyMessage.MessageBack;
                int     FromUserID = 0;
                FromUserID = Convert.ToInt32(Session["UserId"].ToString());
                int RequestID = 0;
                int ToUserID  = 0;

                RequestID = twoModelClass.MessageDetails.RequestID;
                ToUserID  = twoModelClass.MessageDetails.FromUserID;

                msg.FromUserID  = FromUserID;
                msg.RequestID   = RequestID;
                msg.ToUserID    = ToUserID;
                msg.MessageMail = message;

                AccountDbContext db = new AccountDbContext();
                db.messaging.Add(msg);
                db.SaveChanges();
                ViewBag.MessageReq = "Message sent successfully.";
                ModelState.Clear();
                // Call the method to update the Inbox table
            }
            return(View("ReplyBack"));
        }
        public ActionResult ReplyBack(int id = 0)  // here goes messageID from inbox
        {
            AccountDbContext db         = new AccountDbContext();
            Message          msgDetails = db.messaging.Single(msg => msg.MessageID == id);

            if (msgDetails == null)
            {
                return(HttpNotFound());
            }

            SecondUserReplyMessage abc = new SecondUserReplyMessage();

            // Here
            abc.MessageDetails = msgDetails;
            abc.replyMessage   = new ReplyMessage();
            return(View("ReplyBack", abc));
        }