コード例 #1
0
 public async Task <List <DiseaseDTO> > GetDiseasesAsync()
 {
     return(await _diseaseService.GetAllAsync());
 }
コード例 #2
0
 public async Task <IActionResult> GetAllAsync()
 {
     return(Ok(await _diseaseService.GetAllAsync()));
 }
コード例 #3
0
 // GET: Diseases
 public async Task <ActionResult> Index()
 {
     return(View(await _diseaseService.GetAllAsync()));
 }