public void Add(Controller controller) { _factory.Register(controller.GetType()); RoutingService.RegisterController(controller.GetType()); }
public void Register(Type controllerType) { ControllerFactory.Register(controllerType); RoutingService.RegisterController(controllerType); }