// GET: Symptoms/Details/5
        public async Task <ActionResult> Details(int id)
        {
            var symptom = await _symptomService.GetByIdAsync(id);

            if (symptom == null)
            {
                return(NotFound());
            }
            return(View(symptom));
        }
        public async Task <IActionResult> GetSymptom([FromRoute] int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var symptom = await _symptomService.GetByIdAsync(id);

            if (symptom == null)
            {
                return(NotFound());
            }

            return(Ok(symptom));
        }