Esempio n. 1
0
		public int InsertMachine(string getAddr,string getType,string getVol)
		{
			using (OptionDataAccess optionDataAccess = new OptionDataAccess())
			{
				try
				{
					return optionDataAccess.InsertMachine(getAddr,getType,getVol);
				}
				catch(Exception e)
				{
					Util.WriteLog(e.Message,Util.EXCEPTION_LOG_TITLE);
					return -1;
				}
			}
		}
Esempio n. 2
0
		public void InsertMachine(string terminalNumbers,string machineVol)
		{
			using (OptionDataAccess optionDataAccess = new OptionDataAccess())
			{
				try
				{
					optionDataAccess.InsertMachine(terminalNumbers,machineVol);
				}
				catch(Exception e)
				{
					Util.WriteLog(e.Message,Util.EXCEPTION_LOG_TITLE);
				}
			}
		}