Exemple #1
0
        // GET: PracticeAdmin
        public ActionResult Index()
        {
            PracticeAdminIndexViewModel viewM = new PracticeAdminIndexViewModel();

            if (Session["PracAdminFallback"] != null)
            {
                viewM.dateFallback = Convert.ToDateTime(Session["PracAdminFallback"]);
            }
            else
            {
                viewM.dateFallback = DateTime.Now.AddDays(intDayFallback);
            }

            viewM.Patients = pracAdminQueryGenerator(viewM.dateFallback);

            return(View(viewM));
        }
Exemple #2
0
        public ActionResult Index(PracticeAdminIndexViewModel viewM)
        {
            PracticeAdminIndexViewModel returnM = new PracticeAdminIndexViewModel();

            if (viewM.dateFallback != null)
            {
                returnM.dateFallback         = viewM.dateFallback;
                Session["PracAdminFallback"] = viewM.dateFallback;
            }
            else
            {
                returnM.dateFallback = DateTime.Now.AddDays(intDayFallback);
            }

            returnM.Patients = pracAdminQueryGenerator(returnM.dateFallback);

            return(View(returnM));
        }