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"); }
public OrderItemManager(IOrderItemDAL orderItemDAL) => _orderItemDAL = orderItemDAL;
public StoreController(IProductDAL productDal, IOrderDAL orderDal, IOrderItemDAL orderItemDal) { this.productDal = productDal; this.orderDal = orderDal; this.orderItemDal = orderItemDal; }