Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="basePath"></param>
        /// <returns></returns>
        private static bool InsertQuestionData(string basePath)
        {
            var questionList = DataFileReaderHelper.ReadQuestionData(basePath);

            if (questionList.Count > 0)
            {
                foreach (Question question in questionList)
                {
                    ExecuteInsertQuestion(question);
                }

                return(true);
            }

            return(false);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="basePath"></param>
        /// <returns></returns>
        private static bool InsertCardData(string basePath)
        {
            var cardList = DataFileReaderHelper.ReadCardData(basePath);

            if (cardList.Count > 0)
            {
                foreach (Card card in cardList)
                {
                    ExecuteInsertCard(card);
                }

                return(true);
            }

            return(false);
        }