Beispiel #1
0
 public int ws_updatePassport(wsPassportExtended p, out string OpStatus)
 {
     try
     {
         int code = 0;
         DeviceDataManager DDM = new DeviceDataManager();
         code     = DDM.updatePassport(p);
         OpStatus = "Выполнено с кодом " + code.ToString();
         return(1);
     }
     catch (Exception err)
     {
         OpStatus  = Resources.Messages.m_OpStatusFail;
         OpStatus += err.Message.ToString();
         return(0);
     }
 }
Beispiel #2
0
 public int ws_updatePassport(wsPassportExtended p, out string OpStatus)
 {
     try
     {
         int code = 0;
         DeviceDataManager DDM = new DeviceDataManager();
         code = DDM.updatePassport(p);
         OpStatus = "Выполнено с кодом " + code.ToString();
         return 1;
     }
     catch (Exception err)
     {
         OpStatus = Resources.Messages.m_OpStatusFail;
         OpStatus += err.Message.ToString();
         return 0;
     }
 }