public ActionResult PrivateMessageView(Models.MyViewModel pm)
 {
     ViewBag.TargetUser = pm.PrivateMessage.Receiver;
     //continue here for saving Private Message using pm.PrivateMessage
     SavePM(pm.PrivateMessage);
     return(RedirectToAction("PrivateMessageView", "GeneralActivityModule", new { user = pm.PrivateMessage.Receiver }));
 }
Ejemplo n.º 2
0
 public ActionResult PrivateMessageView(String user)
 {
     ViewBag.TargetUser = user;
     Models.MyViewModel model = new Models.MyViewModel();
     model.PrivateMessageList      = GetPrivateMessage(user);
     model.PrivateMessage          = new Models.PrivateMessageModel();
     model.PrivateMessage.Receiver = user;
     model.PrivateMessage.Sender   = ViewBag.Username;
     return(View(model));
 }