public TblStudent DeleteStudent(int id)
        {
            var student = DbContext.TblStudents.FirstOrDefault(x => x.StudentId == id);

            DbContext.Entry(student).State = EntityState.Deleted;
            DbContext.SaveChanges();
            return(student);
        }
        public int UpdateStudent(StudentRecords record)
        {
            context.Entry(record).State = EntityState.Modified;
            int response = context.SaveChanges();

            return(response);
        }
        public int UpdateAttendence(AttendeeRecords record)
        {
            context.Entry(record).State = EntityState.Modified;
            int response = context.SaveChanges();

            return(response);
        }