public IEnumerable <string> Get() { var data = new string[] { "value1", "value2", _test.FullName }; var d = _bondRepository.GetAll(); return(data); }
// GET: Bonds /// <summary> /// For displaying an index of all bonds /// </summary> /// <returns>Index view containing bonds in repository</returns> public async Task <IActionResult> Index() { return(View(await _repository.GetAll())); }
public async Task <ActionResult <IEnumerable <Bond> > > GetBonds() { return(await _repository.GetAll()); }