Beispiel #1
0
        public void SyncBookOrders()
        {
            var orders = this.GetOrders();

            // only get orders of book
            var ordersOfBook = orders.Where(x => x.Type == "Book");

            var bookDao = new BookDao();
            foreach (var order in ordersOfBook)
            {
                bookDao.Insert(order);
            }
        }
Beispiel #2
0
        public void SyncBookOrders()
        {
            var orders = this.GetOrders();

            // only get orders of book
            var ordersOfBook = orders.Where(x => x.Type == "Book");

            var bookDao = new BookDao();

            foreach (var order in ordersOfBook)
            {
                bookDao.Insert(order);
            }
        }
        public virtual BookDao GetBookDao()
        {
            var bookDao = new BookDao();

            return(bookDao);
        }
Beispiel #4
0
        protected virtual IBookDao GetBookDao()
        {
            IBookDao bookDao = new BookDao();

            return(bookDao);
        }
Beispiel #5
0
 protected virtual IBookDao GetBookDao()
 {
     var bookDao = new BookDao();
     return bookDao;
 }