public ActionResult Set(SetRequest rq) { if (rq == null) { throw new ArgumentNullException("rq"); } rq.Persist <Device>(Device.Delete); return(Json(SetRequest.FromPoco(DevicePersistense.List()), JsonRequestBehavior.AllowGet)); }
private void Devices_Shown(object sender, EventArgs e) { TVDevices.Roots = DevicePersistense.List(); }
// // GET: /Device/ public ActionResult Index() { return(View("~/Views/Devices.cshtml", SetRequest.FromPoco(DevicePersistense.List()))); }