Esempio n. 1
0
 public OrderController(IMenuRepository menuRepo, ShoppingCart cartService,
                        IOrderCommunicationRepository orderCRepo, IEmailService email)
 {
     menuRepository = menuRepo;
     cart           = cartService;
     orderCommunicationRepository = orderCRepo;
     emailService = email;
 }
Esempio n. 2
0
 public EmailService(IOrderCommunicationRepository repo)
 {
     _eConfig = repo.DefaultEmailConfiguration;
 }
 public AdminController(IMenuRepository menuRepo, IOrderCommunicationRepository orderCommRepo)
 {
     menuRepository = menuRepo;
     orderCommunicationRepository = orderCommRepo;
 }