예제 #1
0
 public ServiceContract()
 {
     userDAL = (IUserDAL)ContextRegistry.GetContext().GetObject("UserDAL");
     orderDAL = (IOrderDAL)ContextRegistry.GetContext().GetObject("OrderDAL");
     orderItemDAL = (IOrderItemDAL)ContextRegistry.GetContext().GetObject("OrderItemDAL");
     productDAL = (IProductDAL)ContextRegistry.GetContext().GetObject("ProductDAL");
 }
예제 #2
0
 public OrderItemManager(IOrderItemDAL orderItemDAL) => _orderItemDAL = orderItemDAL;
 public StoreController(IProductDAL productDal, IOrderDAL orderDal, IOrderItemDAL orderItemDal)
 {
     this.productDal   = productDal;
     this.orderDal     = orderDal;
     this.orderItemDal = orderItemDal;
 }