Example #1
0
 public ControllerBase(IService <T> serviceBase)
 {
     dynamicTransmogrifier = new DynamicTransmogrifier();
     service = serviceBase;
     service.IncludesForSingle = GetDataIncludesForSingle();
     service.IncludesForList   = GetDataIncludesForList();
 }
Example #2
0
 internal ControllerBase(IService <T> serviceBase, DynamicTransmogrifier dynamicTransmogrifier, IPagination pagination)
 {
     _pagination            = pagination;
     _dynamicTransmogrifier = dynamicTransmogrifier;
     _service = serviceBase;
     _service.IncludesForSingle = GetDataIncludesForSingle();
     _service.IncludesForList   = GetDataIncludesForList();
 }