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

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

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