public async Task <IActionResult> GetById([FromQuery] int symptomId) { var response = await _service.Get(symptomId); if (response.IsErrorOccured) { return(BadRequest(response.Message)); } return(Ok(response.Result)); }
public Symptom Get(long id) { return(_symptomService.Get(id)); }