Beispiel #1
0
 public BaseJsonApiController(
     IJsonApiContext jsonApiContext,
     IResourceQueryService <T, int> queryService = null,
     IResourceCmdService <T, int> cmdService     = null
     ) : base(jsonApiContext, queryService, cmdService)
 {
 }
 public FullBaseJsonApiController(
     IJsonApiContext jsonApiContext,
     IResourceQueryService <T, TId> queryService = null,
     IResourceCmdService <T, TId> cmdService     = null)
     : base(jsonApiContext, queryService, cmdService)
 {
     _getRelationship     = queryService;
     _getRelationships    = queryService;
     _updateRelationships = cmdService;
 }
 public PostPutDeleteBaseJsonApiController(
     IJsonApiContext jsonApiContext,
     IResourceQueryService <T, TId> queryService = null,
     IResourceCmdService <T, TId> cmdService     = null)
     : base(jsonApiContext, queryService)
 {
     _create = cmdService;
     _update = cmdService;
     _delete = cmdService;
 }
Beispiel #4
0
 public BaseJsonApiController(
     IJsonApiOptions jsonApiOptions,
     IResourceQueryService <T, TId> queryService = null,
     IResourceCmdService <T, TId> cmdService     = null)
 {
     _jsonApiOptions      = jsonApiOptions;
     _getAll              = queryService;
     _getById             = queryService;
     _getRelationship     = queryService;
     _getRelationships    = queryService;
     _create              = cmdService;
     _update              = cmdService;
     _updateRelationships = cmdService;
     _delete              = cmdService;
 }