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