Example #1
0
        /// <summary>Gets a list of stock entries though a web service</summary>
        /// <exception cref="Exception">Thrown when failed to get stock entries through web service</exception>
        public IEnumerable <StockEntry> GetStockEntries(Filter filter)
        {
            try
            {
                List <StockEntry> response = new List <StockEntry>();
                response = Client.GetStockEntries(filter).ToList <StockEntry>();

                return(response);
            }
            catch (Exception ex)
            {
                throw new Exception("Failed to get stock entries through web service", ex);
            }
        }