public ActionResult LampBedienen() { DomoticzAPI API = new DomoticzAPI(); int device = API.GetRoomDevices(LoginController.Kamer_ID + 1, "lamp"); API.ToggleSwitch(device); return(RedirectToAction("DashboardPatient", "Patient")); }
public ActionResult MediaPlayerBedienen() { /* * SqlConnection conn = new SqlConnection(); * SqlCommand cmd = new SqlCommand(); */ DomoticzAPI API = new DomoticzAPI(); int device = API.GetRoomDevices(LoginController.Kamer_ID + 1, "media player"); API.ToggleSwitch(device); return(RedirectToAction("DashboardPatient", "Patient")); }