public IActionResult Reply(string Id)
        {
            string caption = string.Empty;
            var    message = this.privateMessageService.GetMessageById(Id);

            if (!message.Caption.StartsWith("RE: "))
            {
                caption = "RE: " + message.Caption;
            }
            else
            {
                caption = message.Caption;
            }

            var model = new PrivateMessageInputModel()
            {
                mId      = message.Id,
                Caption  = caption,
                Quote    = message.Content,
                Receiver = message.Sender.UserName,
                Sender   = this.User.Identity.Name,
            };

            return(this.View("Create", model));
        }
        public IActionResult Create(PrivateMessageInputModel model)
        {
            var sender   = this.userService.GetUserByName(this.User.Identity.Name);
            var receiver = this.userService.GetUserByName(model.Receiver);

            var message = new PrivateMessage
            {
                Caption    = model.Caption,
                Content    = model.Content,
                Quote      = model.Quote,
                SenderId   = sender.Id,
                ReceiverId = receiver.Id,
                CreatedOn  = DateTime.Now,
            };

            this.privateMessageService.Create(message);
            return(this.RedirectToAction("Inbox", "User"));

            // return this.RedirectToAction("UserMods", "User", new {id = receiver.UserName });
        }