public int AddAttendence(AttendeeRecords record)
        {
            context.AttendeeRecords.Add(record);
            int response = context.SaveChanges();

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

            return(response);
        }
 public TblStudent AddStudent(TblStudent student)
 {
     if (student != null)
     {
         DbContext.TblStudents.Add(student);
         DbContext.SaveChanges();
         return(student);
     }
     return(null);
 }