@@ -23,20 +23,20 @@ public static class IServiceCollectionExtensions
2323 public static IServiceCollection AddJsonApi < TContext > ( this IServiceCollection services )
2424 where TContext : DbContext
2525 {
26- var mvcBuilder = services . AddMvc ( ) ;
27- return AddJsonApi < TContext > ( services , ( opt ) => { } , mvcBuilder ) ;
26+ var mvcBuilder = services . AddMvcCore ( ) ;
27+ return AddJsonApi < TContext > ( services , opt => { } , mvcBuilder ) ;
2828 }
2929
3030 public static IServiceCollection AddJsonApi < TContext > ( this IServiceCollection services , Action < JsonApiOptions > options )
3131 where TContext : DbContext
3232 {
33- var mvcBuilder = services . AddMvc ( ) ;
33+ var mvcBuilder = services . AddMvcCore ( ) ;
3434 return AddJsonApi < TContext > ( services , options , mvcBuilder ) ;
3535 }
3636
3737 public static IServiceCollection AddJsonApi < TContext > ( this IServiceCollection services ,
3838 Action < JsonApiOptions > options ,
39- IMvcBuilder mvcBuilder ) where TContext : DbContext
39+ IMvcCoreBuilder mvcBuilder ) where TContext : DbContext
4040 {
4141 var config = new JsonApiOptions ( ) ;
4242
@@ -57,7 +57,7 @@ public static IServiceCollection AddJsonApi<TContext>(this IServiceCollection se
5757
5858 public static IServiceCollection AddJsonApi ( this IServiceCollection services ,
5959 Action < JsonApiOptions > options ,
60- IMvcBuilder mvcBuilder )
60+ IMvcCoreBuilder mvcBuilder )
6161 {
6262 var config = new JsonApiOptions ( ) ;
6363
0 commit comments