Beispiel #1
0
        /// <summary author="Kevin Broskow" created="2019/01/30">
        /// Used to retrieve a specific Item from the database
        /// </summary>
        /// <updates>
        /// <update author="Jared Greenfield" date="2019/04/03">
        /// Converted to Item from Product
        /// </update>
        /// </updates>
        /// <param name="itemID">The unique identifier for a item in the database</param>
        /// <returns>Item</returns>
        public Item RetrieveItem(int itemID)
        {
            Item allItem = null;

            try
            {
                allItem = _itemAccessor.SelectItem(itemID);
            }
            catch (Exception ex)
            {
                ExceptionLogManager.getInstance().LogException(ex);
                throw ex;
            }

            return(allItem);
        }