Beispiel #1
0
        public ActionResult Dashboard(DashboardModel dashboard)
        {
            List <int> stats = userBusinessLayer.GetDashboardStats(Session["Role"].ToString(), int.Parse(Session["UserId"].ToString()));

            appointmentBusinessLayer         = new AppointmentBusinessLayer();
            dashboard.totalUsers             = stats[0];
            dashboard.totalDoctors           = stats[1];
            dashboard.totalAppointments      = stats[2];
            dashboard.totalAppointmentsToday = stats[3];
            dashboard.totalPatients          = stats[4];
            appointmentBusinessLayer.CancelPastAppointments();
            return(View(dashboard));
        }