/// <summary> /// /// </summary> /// <param name="TdRate"></param> /// <returns></returns> public static int ModifyWaterAndRate(WcfInterface.model.TradeRate TdRate) { TradeClient tc = new TradeClient(); int result = 0; try { result = tc.SetRateAndWater(TdRate.PriceCode, TdRate.Rate, TdRate.Water); tc.Close(); } catch (Exception ex) { tc.Abort(); throw new Exception(ex.Message, ex); } return result; }