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
ACiDCA7
ACiDCA710mo ago
without going to deep into the code, your upcommingappointments calls GetAllApointments no filtering no nothing
mohamedhammudeh
mohamedhammudehOP10mo ago
please can you show me how to fix it?
lycian
lycian10mo ago
You already have a GetAppointments(int doctorId), you just need to be calling that instead of GetAllAppointments
mohamedhammudeh
mohamedhammudehOP10mo ago
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!
mohamedhammudeh
mohamedhammudehOP10mo ago
i fixed it thank you
Want results from more Discord servers?
Add your server