public int CountAppointments(string searchVal) { return(_appointmentRepository.CountAppointments(searchVal)); }