public ActionResult Index(SessionMessageViewModel vm) { ViewBag.Message = "Message page."; _sessionMessageManager.SetMessage(vm.Type, vm.Behaviors, vm.Message); //return RedirectToAction("About"); return(View(vm)); }
public ActionResult Index() { var vm = new SessionMessageViewModel { Type = MessageType.Success, Behaviors = MessageBehaviors.StatusBar }; return(View(vm)); }
public ActionResult AjaxMessage([FromBody] SessionMessageViewModel vm) { _sessionMessageManager.SetMessage(vm.Type, vm.Behaviors, vm.Message); return(View("Index")); }