Ejemplo n.º 1
0
 public OrderController(
     IOrderHeaderRepository orderHRepo, IOrderDetailRepository orderDRepo, IBrainTreeGate brain)
 {
     _brain      = brain;
     _orderDRepo = orderDRepo;
     _orderHRepo = orderHRepo;
 }
Ejemplo n.º 2
0
 public OrderController(
     IOrderHeaderRepository orderHRepo, IOrderDetailRepository orderDRepo, IProductRepository prodRepo)
 {
     _orderDRepo = orderDRepo;
     _orderHRepo = orderHRepo;
     _prodRepo   = prodRepo;
 }
Ejemplo n.º 3
0
 public OrderController(
     IOrderHeaderRepository order_header_repo, IOrderDetailsRepository order_details_repo,
     IBrainTreeGate brain)
 {
     _order_header_repo  = order_header_repo;
     _order_details_repo = order_details_repo;
     _brain = brain;
 }
Ejemplo n.º 4
0
 public OrdersManager(ILogger <OrdersManager> logger, IMQPublisher mqPublisher,
                      IOrderHeaderRepository orderRepository, IOrderEntityService orderEntityService)
 {
     _log                = logger;
     _mqPublisher        = mqPublisher;
     _orderRepository    = orderRepository;
     _orderEntityService = orderEntityService;
 }
Ejemplo n.º 5
0
 public CartController(IWebHostEnvironment webHostEnvironment, IApplicationUserRepository userRepo, IProductRepository prodRepo,
                       IOrderHeaderRepository orderHRepo, IOrderDetailRepository orderDRepo)
 {
     _webHostEnvironment = webHostEnvironment;
     _userRepo           = userRepo;
     _prodRepo           = prodRepo;
     _orderDRepo         = orderDRepo;
     _orderHRepo         = orderHRepo;
 }
Ejemplo n.º 6
0
 public CartController(IShoppingCartRepository iShoppingCartRepository, IOrderHeaderRepository iOrderHeaderRepository,
                       IOrderDetailsRepository iOrderDetailsRepository, IMenuItemRepository menuItemRepository, ICouponRepository couponRepository)
 {
     _iShoppingCartRepository = iShoppingCartRepository;
     _iOrderHeaderRepository  = iOrderHeaderRepository;
     _iOrderDetailsRepository = iOrderDetailsRepository;
     _menuItemRepository      = menuItemRepository;
     _couponRepository        = couponRepository;
 }
 public CartController(IProductRepository iProd,
                       IOrderHeaderRepository iOrderH,
                       IOrderDetailsRepository iOrderD,
                       UserManager <IdentityUser> userManager)
 {
     _iProd       = iProd;
     _iOrderH     = iOrderH;
     _iOrderD     = iOrderD;
     _userManager = userManager;
 }
Ejemplo n.º 8
0
 public UnitOfWork(ShopDbContext db, ICategoryRepository categoryRepository, IProductRepository productRepository,
                   IUserRepository userRepository, IShoppingCartRepository shoppingCartRepository, IOrderHeaderRepository orderHeaderRepository)
 {
     _db          = db;
     Category     = categoryRepository;
     Product      = productRepository;
     User         = userRepository;
     OrderHeader  = orderHeaderRepository;
     ShoppingCart = shoppingCartRepository;
 }
 public CustomerController(IUsersRepository iUser,
                           UserManager <IdentityUser> userManager,
                           IOrderHeaderRepository iOrderH,
                           IOrderDetailsRepository iOrderD)
 {
     _iUser       = iUser;
     _userManager = userManager;
     _iOrderH     = iOrderH;
     _iOrderD     = iOrderD;
 }
Ejemplo n.º 10
0
 public OrderController(ICustomerRepository customerRepository,
                        IOrderHeaderRepository orderHeaderRepository,
                        IOrderDetailRepository orderDetailRepository,
                        IUnitOfWork uow
                        )
 {
     this.CustomerRepository    = customerRepository;
     this.OrderHeaderRepository = orderHeaderRepository;
     this.OrderDetailRepository = orderDetailRepository;
     this.Uow = uow;
 }
Ejemplo n.º 11
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db             = db;
     Category        = new CategoryRepository(_db);
     FoodType        = new FoodTypeRepository(_db);
     MenuItem        = new MenuItemRepository(_db);
     ApplicationUser = new ApplicationUserRepository(_db);
     ShoppingCart    = new ShoppingCartRepository(_db);
     OrderHeader     = new OrderHeaderRepository(_db);
     OrderDetails    = new OrderDetailsRepository(_db);
 }
Ejemplo n.º 12
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db             = db;
     Category        = new CategoryRepository(_db);
     CoverType       = new CoverTypeRepository(_db);
     SP_Call         = new SP_Call(_db);
     Product         = new ProductRepository(_db);
     Company         = new CompanyRepository(_db);
     ApplicationUser = new ApplicationUserRepository(_db);
     ShoppingCart    = new ShoppingCartRepository(_db);
     OrderDetails    = new OrderDetailsRepository(_db);
     OrderHeader     = new OrderHeaderRepository(_db);
 }
Ejemplo n.º 13
0
 public CartController(IApplicationUserRepository userRepo, IProductRepository prodRepo,
                       IWishListDetailRepository wishDRepo, ICartRepository cartRepo,
                       IOrderHeaderRepository orderHRepo, IOrderDetailRepository orderDRepo,
                       IWebHostEnvironment webHostEnvironment, IEmailSender emailSender)
 {
     _webHostEnvironment = webHostEnvironment;
     _emailSender        = emailSender;
     _userRepo           = userRepo;
     _prodRepo           = prodRepo;
     _wishDRepo          = wishDRepo;
     _orderDRepo         = orderDRepo;
     _orderHRepo         = orderHRepo;
     _cartRepo           = cartRepo;
 }
Ejemplo n.º 14
0
 public CartController(IWebHostEnvironment webHostEnvironment, IEmailSender emailSender,
                       IApplicationUserRepository userRepo, IProductRepository prodRepo,
                       IInquiryHeaderRepository inqHRepo, IInquiryDetailRepository inqDRepo,
                       IOrderHeaderRepository orderHRepo, IOrderDetailRepository orderDRepo, IBrainTreeGate brain)
 {
     _webHostEnvironment = webHostEnvironment;
     _emailSender        = emailSender;
     _brain      = brain;
     _userRepo   = userRepo;
     _prodRepo   = prodRepo;
     _inqDRepo   = inqDRepo;
     _inqHRepo   = inqHRepo;
     _orderDRepo = orderDRepo;
     _orderHRepo = orderHRepo;
 }
 public OrderBusinessEngine(IDataRepositoryFactory data_repo_fact, IBusinessEngineFactory bus_eng_fact, IEntityServiceFactory ent_serv_fact)
     : base(data_repo_fact, bus_eng_fact, ent_serv_fact)
 {
     _order_header_repo    = _data_repository_factory.GetDataRepository <IOrderHeaderRepository>();
     _order_item_repo      = _data_repository_factory.GetDataRepository <IOrderItemRepository>();
     _comment_be           = _business_engine_factory.GetBusinessEngine <ICommentBusinessEngine>();
     _employee_be          = _business_engine_factory.GetBusinessEngine <IEmployeeBusinessEngine>();
     _address_be           = _business_engine_factory.GetBusinessEngine <IAddressBusinessEngine>();
     _product_be           = _business_engine_factory.GetBusinessEngine <IProductBusinessEngine>();
     _account_be           = _business_engine_factory.GetBusinessEngine <IAccountBusinessEngine>();
     _order_status_be      = _business_engine_factory.GetBusinessEngine <IOrderStatusBusinessEngine>();
     _order_item_status_be = _business_engine_factory.GetBusinessEngine <IOrderItemStatusBusinessEngine>();
     _order_se             = _entity_service_factory.GetEntityService <IOrderEntityService>();
     _order_item_se        = _entity_service_factory.GetEntityService <IOrderItemEntityService>();
 }
Ejemplo n.º 16
0
 public CartController(IWebHostEnvironment webHostEnvironment, IProductRepository prodRepo, IApplicationUserRepository appRepo, IInquiryHeaderRepository headerRepo,
                       IOrderHeaderRepository order_header_repo, IOrderDetailsRepository order_details_repo,
                       IInquiryDetailsRepository detailRepo,
                       IEmailSender emailSender, IBrainTreeGate brain)
 {
     _prodRepo           = prodRepo;
     _appRepo            = appRepo;
     _headerRepo         = headerRepo;
     _detailRepo         = detailRepo;
     _webHostEnvironment = webHostEnvironment;
     _emailSender        = emailSender;
     _order_header_repo  = order_header_repo;
     _order_details_repo = order_details_repo;
     _brain = brain;
 }
 public OrdersController(IOrderHeaderRepository iOrderH,
                         IOrderDetailsRepository iOrderD)
 {
     _iOrderH = iOrderH;
     _iOrderD = iOrderD;
 }