Scheduler. How to use GetAppointmentsInRange?

Hi,
I see in the documentation de fllowing...

public IEnumerable<AppointmentData> GetAppointmentsInRange(DateTime start, DateTime end)

How can I use it in the razor.cs to get the appointments between two dates?

Thanks in advance!!

Sorry...Just I wrote....and I find the solution...

For others...if you have @ref=@scheduler or so, just you can use:

scheduler.GetAppointmentsInRage.

Thanks for these controls!!

Hi again,

If I have one appointment in Schedules with Start 2021-12-23 10:00:00 and End 2021-12-23 10:30:00 and I get:
scheduler.GetAppointmentsInRange(2021-12-23 10:30:00, 2021-12-23 11:00:00), it returns the previous one. Why?

The implementation is available here. You can tweak it per your requirements.

1 Like