public ActionResult Index() { var model = new NoticeIndexModel(); model.Notices = Notices.Load(); model.Zone = Zone.Load(DBSettings.NoticeZone); return(View(model)); }
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)); }