} // end Add code post // r e a d public IActionResult Index() // list of code segments { IQueryable <Code> codeList; codeList = _codeRepository.GetAllCode(); return(View(codeList)); } // end Index all code