//
        // GET: /Home/
        public ActionResult Index()
        {
            SpeakersRepository repository = new SpeakersRepository();
            var speakers = repository.GetAllSpeakers();

            ViewBag.Speakers = speakers;

            return View();
        }
        public IController CreateController(System.Web.Routing.RequestContext requestContext, string controllerName)
        {
            if (controllerName.ToLower().StartsWith("home"))
            {
                ISpeakerService service = new SpeakersRepository();
                IController controller = new HomeController(service);

                return controller;
            }

            IControllerFactory factory = new DefaultControllerFactory();
            return factory.CreateController(requestContext, controllerName);
        }