public ShoppingCartModel()
 {
     INhibernateConnection connection = new NHibernateConnection();
     ISessionFactory sessionFactory = connection.CreateSessionFactory();
     ISession _session = sessionFactory.OpenSession();
     _cartRepo = new ShoppingCartRepository(connection);
 }
 public ShoppingCartModel()
 {
     INhibernateConnection connection = new NHibernateConnection();
     ISessionFactory sessionFactory = connection.CreateSessionFactory();
     ISession _session = sessionFactory.OpenSession();
     _cartRepo = new ShoppingCartRepository(connection);
     _orderRepo = new OrdersRepository(connection);
     _orderDetailsRepo = new OrderDetailsRepository(connection);
     _producRepo = new ProductsRepository(connection);
 }