public IEnumerable <string> Get()
        {
            var data = new string[] { "value1", "value2", _test.FullName };
            var d    = _bondRepository.GetAll();

            return(data);
        }
Beispiel #2
0
 // 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()));
 }
Beispiel #3
0
 public async Task <ActionResult <IEnumerable <Bond> > > GetBonds()
 {
     return(await _repository.GetAll());
 }