コード例 #1
0
 public ActionResult On(Device device)
 {
     SlapsteonFacade facade = new SlapsteonFacade();
     facade.On(device.Name);
     device.Status = 100;
     return RedirectToAction("Index", "Home");
 }
コード例 #2
0
        public ActionResult OnLevel(string deviceName, int? level)
        {
            SlapsteonFacade facade = new SlapsteonFacade();
            facade.On(deviceName, level ?? 0);

            return RedirectToAction("Index", "Home");
        }
コード例 #3
0
        public ActionResult Off(DeviceOld device)
        {
            SlapsteonFacade facade = new SlapsteonFacade();
            facade.Off(device.Name);

            return RedirectToAction("Index", "Home");
        }
コード例 #4
0
 public ActionResult SetPointUp(Device device)
 {
     SlapsteonFacade facade = new SlapsteonFacade();
     facade.SetPointUp(device.Name);
     return RedirectToAction("Index", "Home");
 }