예제 #1
0
 public ActionResult Set(SetRequest rq)
 {
     if (rq == null)
     {
         throw new ArgumentNullException("rq");
     }
     rq.Persist <LocationBase>(LocationBase.Delete);
     return(Json(SetRequest.FromPoco(LocationPersistence.ListBases()), JsonRequestBehavior.AllowGet));
 }
예제 #2
0
 public ActionResult ListLocations(long id)
 {
     return(Json(SetRequest.FromPoco(DevicePersistense.GetLocations(id)), JsonRequestBehavior.AllowGet));
 }
예제 #3
0
        //
        // GET: /Location/

        public ActionResult Index()
        {
            return(View("~/Views/LocationBases.cshtml", SetRequest.FromPoco(LocationPersistence.ListBases())));
        }
예제 #4
0
        //
        // GET: /Device/


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