Exemplo n.º 1
0
        public JsonResult GetDevicesInARoomByType(string roomId, int type)
        {
            Guid Id;

            if (roomId.Length > 36)
            {
                string id = roomId.Substring(1, 36);
                Id = new Guid(id);
            }
            else
            {
                Id = new Guid(roomId);
            }
            return(Json(adapter.GetDevicesInARoomByType(Id, type)));
        }