コード例 #1
0
 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));
 }
コード例 #2
0
 private void Devices_Shown(object sender, EventArgs e)
 {
     TVDevices.Roots = DevicePersistense.List();
 }
コード例 #3
0
        //
        // GET: /Device/


        public ActionResult Index()
        {
            return(View("~/Views/Devices.cshtml", SetRequest.FromPoco(DevicePersistense.List())));
        }