/// <summary> /// 获取设备列表 /// </summary> /// <returns></returns> public static IEnumerable <Model.XCCloudRS232.Base_DeviceInfo> GetDeviceList() { BLL.IBLL.XCCloudRS232.IDeviceService deviceService = BLLContainer.Resolve <BLL.IBLL.XCCloudRS232.IDeviceService>(); var deviceList = deviceService.GetModels(d => true); return(deviceList); }
/// <summary> /// 更新设备 /// </summary> /// <param name="d"></param> /// <returns></returns> public static bool UpdateDevice(Model.XCCloudRS232.Base_DeviceInfo d) { BLL.IBLL.XCCloudRS232.IDeviceService deviceService = BLLContainer.Resolve <BLL.IBLL.XCCloudRS232.IDeviceService>(); bool ret = deviceService.Update(d); return(ret); }