public async Task <IActionResult> Index()
 {
     return(View(new SearchVM
     {
         Symptoms = new SelectList(await _symptomService.GetAllSymptomsAsync(), nameof(Symptom.Id), nameof(Symptom.Name))
     }));
 }
Example #2
0
 public async Task <IActionResult> Get() => Ok(await _symptomService.GetAllSymptomsAsync());