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