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