Exemplo n.º 1
0
 public HomeController(IPaymentGateway paymentGateway, ICloudService cloudService,
                       ITenantDatabase db, INotificationService notificationService,
                       ILogger logger) // The constructor parameter is injected by the unity container. Check UnityConfig.cs
 {
     this.PaymentGateway      = paymentGateway;
     this.CloudService        = cloudService;
     this.DB                  = db;
     this.NotificationService = notificationService;
     this.logger              = logger;
 }
Exemplo n.º 2
0
 public UserRepository(ITenantDatabase dbContext) : base(dbContext)
 {
 }