@@ -23,20 +23,20 @@ public static class IServiceCollectionExtensions
23
23
public static IServiceCollection AddJsonApi < TContext > ( this IServiceCollection services )
24
24
where TContext : DbContext
25
25
{
26
- var mvcBuilder = services . AddMvc ( ) ;
27
- return AddJsonApi < TContext > ( services , ( opt ) => { } , mvcBuilder ) ;
26
+ var mvcBuilder = services . AddMvcCore ( ) ;
27
+ return AddJsonApi < TContext > ( services , opt => { } , mvcBuilder ) ;
28
28
}
29
29
30
30
public static IServiceCollection AddJsonApi < TContext > ( this IServiceCollection services , Action < JsonApiOptions > options )
31
31
where TContext : DbContext
32
32
{
33
- var mvcBuilder = services . AddMvc ( ) ;
33
+ var mvcBuilder = services . AddMvcCore ( ) ;
34
34
return AddJsonApi < TContext > ( services , options , mvcBuilder ) ;
35
35
}
36
36
37
37
public static IServiceCollection AddJsonApi < TContext > ( this IServiceCollection services ,
38
38
Action < JsonApiOptions > options ,
39
- IMvcBuilder mvcBuilder ) where TContext : DbContext
39
+ IMvcCoreBuilder mvcBuilder ) where TContext : DbContext
40
40
{
41
41
var config = new JsonApiOptions ( ) ;
42
42
@@ -57,7 +57,7 @@ public static IServiceCollection AddJsonApi<TContext>(this IServiceCollection se
57
57
58
58
public static IServiceCollection AddJsonApi ( this IServiceCollection services ,
59
59
Action < JsonApiOptions > options ,
60
- IMvcBuilder mvcBuilder )
60
+ IMvcCoreBuilder mvcBuilder )
61
61
{
62
62
var config = new JsonApiOptions ( ) ;
63
63
0 commit comments