예제 #1
0
        public ActionResult UpdateSuccess(string subject, string okAction, string okController)
        {
            var vm = new MessageBoxViewModel { Message = subject + " successfully updated", OkAction = okAction, OkController = okController };

            return this.PartialView("AjaxMessage", vm);
        }
예제 #2
0
        public ActionResult UpdateFailure(string subject, string okAction, string okController)
        {
            var vm = new MessageBoxViewModel { Message = "Oops! Something went wrong, the " + subject.ToLower() + " wasn't updated", OkAction = okAction, OkController = okController };

            return this.PartialView("AjaxMessage", vm);
        }