コード例 #1
0
 public async Task <IActionResult> Find([FromBody] List <SymptomDTO> symptoms)
 {
     if (!symptoms.TrueForAll(s => s.Id != null))
     {
         return(BadRequest(new FeedbackDTO("Id must be set when posting")));
     }
     return(Ok(await _diseaseService.FindPossibleDiseases(symptoms)));
 }