public ActionResult Index(int id) { SectionModel section = repository.Read(id); if (section == null) { throw new HttpException(404, "Section could not be found."); } return(View(section)); }