public static ZebbleBillingVoucherServicesBuilder AddEntityFramework(this ZebbleBillingVoucherServicesBuilder builder) { builder.Services.AddDbContext <VoucherDbContext>(); builder.Services.AddScoped <IVoucherRepository, VoucherRepository>(); return(builder); }
public static ZebbleBillingVoucherServicesBuilder AddDynamoDb(this ZebbleBillingVoucherServicesBuilder builder) { builder.Services.AddScoped <VoucherDbContext>(); builder.Services.AddScoped <IVoucherRepository, VoucherRepository>(); return(builder); }