public static Jc_MacInfo QueryJcMac(string mac) { //IJC_MACService DEFService = ServiceFactory.CreateService<IJC_MACService>(); //return DEFService.QueryMACByCode(PointCode); //var req = new NetworkModuleCacheGetByConditonRequest //{ // Predicate = a => a.MAC == PointCode && a.InfoState != InfoState.Delete //}; //var res = NetworkModuleService.GetNetworkModuleCacheByDynamicCondition(req); var req = new NetworkModuleGetByMacRequest { Mac = mac }; var res = NetworkModuleService.GetNetworkModuleCacheByMac(req); if (!res.IsSuccess) { throw new Exception(res.Message); } return(res.Data.FirstOrDefault()); }
public BasicResponse <List <Jc_MacInfo> > GetNetworkModuleCacheByMac(NetworkModuleGetByMacRequest NetworkModuleRequest) { return(_NetworkModuleService.GetNetworkModuleCacheByMac(NetworkModuleRequest)); }