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);
 }