public IHttpActionResult GetSubCategories(int id) { try { var result = _patientData.GetSubCategories(id); return(Ok(result)); } catch (Exception e) { Console.WriteLine(e); throw; } }