@@ -16,6 +16,18 @@ public JsonApiController(
16
16
ILoggerFactory loggerFactory )
17
17
: base ( jsonApiContext , resourceService , loggerFactory )
18
18
{ }
19
+
20
+ public JsonApiController (
21
+ IJsonApiContext jsonApiContext ,
22
+ IGetAllService < T , int > getAll = null ,
23
+ IGetByIdService < T , int > getById = null ,
24
+ IGetRelationshipService < T , int > getRelationship = null ,
25
+ IGetRelationshipsService < T , int > getRelationships = null ,
26
+ ICreateService < T , int > create = null ,
27
+ IUpdateService < T , int > update = null ,
28
+ IUpdateRelationshipService < T , int > updateRelationships = null ,
29
+ IDeleteService < T , int > delete = null
30
+ ) : base ( jsonApiContext , getAll , getById , getRelationship , getRelationships , create , update , updateRelationships , delete ) { }
19
31
}
20
32
21
33
public class JsonApiController < T , TId >
@@ -34,6 +46,18 @@ public JsonApiController(
34
46
: base ( jsonApiContext , resourceService )
35
47
{ }
36
48
49
+ public JsonApiController (
50
+ IJsonApiContext jsonApiContext ,
51
+ IGetAllService < T , TId > getAll = null ,
52
+ IGetByIdService < T , TId > getById = null ,
53
+ IGetRelationshipService < T , TId > getRelationship = null ,
54
+ IGetRelationshipsService < T , TId > getRelationships = null ,
55
+ ICreateService < T , TId > create = null ,
56
+ IUpdateService < T , TId > update = null ,
57
+ IUpdateRelationshipService < T , TId > updateRelationships = null ,
58
+ IDeleteService < T , TId > delete = null
59
+ ) : base ( jsonApiContext , getAll , getById , getRelationship , getRelationships , create , update , updateRelationships , delete ) { }
60
+
37
61
[ HttpGet ]
38
62
public override async Task < IActionResult > GetAsync ( ) => await base . GetAsync ( ) ;
39
63
0 commit comments