public ActionResult MessagePost(AddMessageBm bm)
        {
            if (this.ModelState.IsValid)
            {
                var currentUserId = this.User.Identity.GetUserId();

                this.service.AddMessage(bm, currentUserId);

                return(this.RedirectToAction("Sent"));
            }

            AddMessageVm vm = new AddMessageVm();

            vm.RecieverId = bm.RecieverId;

            return(this.View("Message", vm));
        }
        public ActionResult Message(string userId)
        {
            if (userId == null)
            {
                return(this.HttpNotFound());
            }

            if (!this.service.UserExists(userId))
            {
                return(this.HttpNotFound("User does not exist"));
            }

            AddMessageVm vm = new AddMessageVm();

            vm.RecieverId = userId;

            return(this.View(vm));
        }