/// <summary>
        /// Gets a list of Business Logic orders under a valid customer ID and a database context
        /// </summary>
        /// <param name="custID"></param>
        /// <param name="context"></param>
        /// <returns></returns>
        public List <StoreApp.BusinessLogic.Objects.Order> GetListOfOrdersByCustomerID(int custID, StoreApplicationContext context)
        {
            List <Order> listToBeReturned = new List <Order>();

            try
            {
                foreach (Entities.Orders CTXOrder in context.Orders)
                {
                    if (CTXOrder.CustomerId == custID)
                    {
                        listToBeReturned.Add(parser.ContextOrderToLogicOrder(CTXOrder));
                    }
                }
                return(listToBeReturned);
            }
            catch (Exception e)
            {
                Console.WriteLine("Operation failed: " + e.Message);
                return(null);
            }
        }
        public List <Order> GetListOfOrdersFromStoreNumber(int storeNumber)
        {
            List <BusinessLogic.Objects.Order> BLListOrders = new List <Order>();

            foreach (Entities.Orders CTXOrder in _context.Orders)
            {
                BLListOrders.Add(ParseHandler.ContextOrderToLogicOrder(CTXOrder));
            }
            foreach (BusinessLogic.Objects.Order BLOrder in BLListOrders)
            {
                foreach (Entities.OrderProduct CTXOrdProd in _context.OrderProduct)
                {
                    if (BLOrder.orderID == CTXOrdProd.OrderId)
                    {
                        BLOrder.customerProductList.Add(ParseHandler.ContextOrderProductToLogicProduct(CTXOrdProd));
                    }
                }
            }
            return(BLListOrders);
        }