Exemple #1
0
        public ActionResult AttendanceDates(FormCollection collection)
        {
            // get the date in form collection

            DateTime startDate = DateTime.Parse(collection["startDate"]);

            DateTime endDate = DateTime.Parse(collection["endDate"]);


            //get list with this time constraint
            List <AttendanceDates> list = db.GetAttendanceDatesReport(startDate, endDate).ToList();

            TempData["AttendanceDates"] = list.ToList();

            // redirect view with list of passlog
            return(RedirectToAction("AttendanceDatesList"));
        }