public ActionResult Index(int?day, int?month, int?year)
        {
            Session["Authen"]   = true;
            Session["username"] = "******";

            if (Session["Authen"] == null)
            {
                return(RedirectToAction("Login", "Home"));
            }

            if (day == null && month == null && year == null)
            {
                day   = DateTime.Now.Day;
                month = DateTime.Now.Month;
                year  = DateTime.Now.Year;
            }

            AllAppointmentViewModel result = new AllAppointmentViewModel
            {
                date    = new DateTime(year.Value, month.Value, day.Value),
                AppWait = _AppRepo.GetByDayAndMonthAndYearAndStatus(day.Value, month.Value, year.Value, "Waiting"),
                AppCom  = _AppRepo.GetByDayAndMonthAndYearAndStatus(day.Value, month.Value, year.Value, "Complete"),
            };

            return(View(result));
        }
        public ActionResult Monthly(int?month, int?year)
        {
            if (Session["Authen"] == null)
            {
                return(RedirectToAction("Login", "Home"));
            }

            if (month == null && year == null)
            {
                month = DateTime.Now.Month;
                year  = DateTime.Now.Year;
            }


            AllAppointmentViewModel result = new AllAppointmentViewModel
            {
                date    = new DateTime(year.Value, month.Value, DateTime.Now.Day),
                AppWait = _AppRepo.GetByMonthAndYearAndStatus(month.Value, year.Value, "Waiting"),
                AppCom  = _AppRepo.GetByMonthAndYearAndStatus(month.Value, year.Value, "Complete"),
            };


            return(View(result));
        }