public HttpResponseMessage GetEmployee(string clinicName) { HttpResponseMessage response = new HttpResponseMessage(); // 返回所有当前科室下所有医生的所有信息 // employee表找到clinic符合的医生 // 返回医生的所有信息 ArrayList list = null; try { list = PatientHelper.GetEmployeeOfClinic(clinicName); } catch (Exception e) { response.Content = new StringContent(e.Message + " ClinicName:" + clinicName); response.StatusCode = HttpStatusCode.BadRequest; return(response); } if (list == null) { response.Content = new StringContent("查询失败,请检查科室名是否正确或服务器内部错误 ClinicName:" + clinicName); response.StatusCode = HttpStatusCode.NotFound; } else { response.Content = new StringContent(JsonObjectConverter.ObjectToJson(list)); response.StatusCode = HttpStatusCode.OK; } return(response); }