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