Esempio n. 1
0
 public async Task <ActionResult <IEnumerable <PersonModel> > > List()
 {
     return(Ok(await _listPersonService.ListPersonAsync()));
 }
Esempio n. 2
0
 public async Task <ActionResult> Index()
 {
     return(View(await _listPersonService.ListPersonAsync()));
 }