Example #1
0
        /// <summary>Adds a stock entry through a web service</summary>
        /// <exception cref="Exception">Thrown when failed to add stock entry though web service</exception>
        public string AddStockEntry(StockEntry stock)
        {
            try
            {
                string response;
                response = Client.AddStockEntry(stock);

                return(response);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed to add stock entry though web service", ex);
            }
        }