示例#1
0
        /// <summary>Deletes a stock entry through a web service</summary>
        /// <exception cref="Exception">Thrown when failed to delete stock entry from a web service</exception>
        public string DeleteStock(uint id)
        {
            try
            {
                string response;
                response = Client.DeleteStock(id);

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