public long m_lngAddDevice(ref clsLisDevice_VO p_objDeviceVO) { long lngRes = 0; com.digitalwave.iCare.middletier.LIS.clsLisDeviceSvc objDeviceSvc = null; objDeviceSvc = (com.digitalwave.iCare.middletier.LIS.clsLisDeviceSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.LIS.clsLisDeviceSvc)); lngRes = objDeviceSvc.m_lngAddDevice(objPrincipal, ref p_objDeviceVO); // objDeviceSvc.Dispose(); return(lngRes); }