public WindowPatientNotifications() { InitializeComponent(); instance = this; //List<Notification> notifications = m.GetExaminations(l.EnteredUsername); List <Notification> notifications = ntf.GetNotifications(mw.EnteredUsername); //List<Examination> examinations = m.Examinations; lvUsers.ItemsSource = notifications; //Logic.PatientNotifications p = new Logic.PatientNotifications(); }
// GET: Notoifications public ActionResult List() { var notifications = notificationManagement.GetNotifications(db.Users.Find(User.Identity.GetUserId())); notificationManagement.MarkNotificationRead(notifications); ViewBag.Head = "UnRead "; ViewBag.Count = notifications.Count; return(View(notifications)); }