public IHttpActionResult GetAppointmentsByPatientID(int PatientID) { AppointmentLogic appointmentLogic = new AppointmentLogic(); var appointments = appointmentLogic.GetAppointmentsByPatientID(PatientID); return(Ok(appointments)); }