public ActionResult SetDevState(string ids, DeviceState state, string uid) { var result = deviceRepository.ChangeStatus(ids, state, uid); return(this.ToJsonResult(result)); }