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