// GET: EmployeeAttendance/Create
        public ActionResult Create()
        {
            student_attendence empModel = new student_attendence();

            empModel.studentCollection = _db.Students.ToList <Student>();

            return(View(empModel));
        }
        public ActionResult Create([Bind(Exclude = "att_id")] student_attendence studentToAttend)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(View());
                }

                _db.student_attendence.Add(studentToAttend);
                _db.SaveChanges();

                return(RedirectToAction("Attendance"));
            }
            catch
            {
                return(View());
            }
        }