public void UpdateStudentPresence(StudentPresence studentPresnece) { using (EntityModel em = new EntityModel()) { em.Entry(studentPresnece).State = System.Data.Entity.EntityState.Modified; em.SaveChanges(); } }
public void InsertStudentPresence(StudentPresence newStudentPresnece) { using (EntityModel em = new EntityModel()) { em.StudentPresence.Add(newStudentPresnece); em.SaveChanges(); } }
public void DeleteStudentPresense(StudentPresence studentPresence) { using (EntityModel em = new EntityModel()) { em.StudentPresence.Remove(studentPresence); em.SaveChanges(); } }
public async Task <StudentPresence> FindStudentPresneceAsync(long studentPresenceID) { StudentPresence studentPresence = null; using (EntityModel em = new EntityModel()) { studentPresence = await em.StudentPresence.FindAsync(studentPresenceID); } return(studentPresence); }
public StudentPresence FindStudentPresnece(long studentPresenceID) { StudentPresence studentPresence = null; using (EntityModel em = new EntityModel()) { studentPresence = em.StudentPresence.Find(studentPresenceID); } return(studentPresence); }
public void UpdateStudentPresence(StudentPresence studentPresnece) { _studentPresenceDAO.UpdateStudentPresence(studentPresnece); }
public void InsertStudentPresence(StudentPresence newStudentPresnece) { _studentPresenceDAO.InsertStudentPresence(newStudentPresnece); }
public void DeleteStudentPresense(StudentPresence studentPresence) { _studentPresenceDAO.DeleteStudentPresense(studentPresence); }