public async Task <ActionResult> GetAllAppointmentByPatient(string patientId) { var appointmentList = await _appointmentServices.GetAllAppointmentByPatient(patientId); return(PartialView("_PatientAppointmentListPartialView", appointmentList)); }