problem updateing MVVM WPF C#
Can someone helt me showing upcommingappointments only for the inlogged doctor??
my problem now is that no matter what doctor i login with i can se alla the doctorappointments in my database, i just want to show the appointments for the inlogged doctor. i have methods in ManageAppointmentController i think is useable
https://paste.mod.gg/gbfuhhnqupcg/0
BlazeBin - gbfuhhnqupcg
A tool for sharing your source code with the world!
5 Replies
without going to deep into the code, your upcommingappointments calls GetAllApointments no filtering no nothing
please can you show me how to fix it?
You already have a
GetAppointments(int doctorId)
, you just need to be calling that instead of GetAllAppointments
i get this error when i do this (im a student)System.NullReferenceException: 'Object reference not set to an instance of an object.'
selectedDoctor was null. https://paste.mod.gg/kfbfvwqqfcdj/0
BlazeBin - kfbfvwqqfcdj
A tool for sharing your source code with the world!
i fixed it thank you