Exemplo n.º 1
0
        public ActionResult UpdateDisplayOptions(DisplayOptionsModel model)
        {
            var cookie = new HttpCookie("LoggingMonkeyDisplay", DisplayOptionsModel.ToJson(model));
            Response.Cookies.Set(cookie);

            return Request.UrlReferrer != null ? (ActionResult)Redirect(Request.UrlReferrer.AbsoluteUri) : RedirectToAction("Index");
        }
 public static string ToJson(DisplayOptionsModel model)
 {
     return Json.Encode(model);
 }