Esempio n. 1
0
        public ActionResult Index()
        {
            var model = new NoticeIndexModel();

            model.Notices = Notices.Load();
            model.Zone    = Zone.Load(DBSettings.NoticeZone);
            return(View(model));
        }
Esempio n. 2
0
        public JsonResult SaveNotice(Notice Notice)
        {
            var rv = new Notice();

            if (Notice == null || Notice.ID <= 0)
            {
                return(Json(rv, JsonRequestBehavior.DenyGet));
            }

            rv = Notices.Load()[0];

            return(Json(rv, JsonRequestBehavior.DenyGet));
        }