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

            return RedirectToAction("Index", "Home");
        }
Ejemplo n.º 3
0
        public ActionResult Off(DeviceOld device)
        {
            SlapsteonFacade facade = new SlapsteonFacade();
            facade.Off(device.Name);

            return RedirectToAction("Index", "Home");
        }
Ejemplo n.º 4
0
 public ActionResult SetPointUp(Device device)
 {
     SlapsteonFacade facade = new SlapsteonFacade();
     facade.SetPointUp(device.Name);
     return RedirectToAction("Index", "Home");
 }