//To Update the records of a particluar employee public void UpdateTeacher(Teacher teacher) { try { db.Entry(teacher).State = EntityState.Modified; db.SaveChanges(); } catch { throw; } }
//To Update the records of a particluar UDate public void UpdateUDate(UDate UDate) { try { db.Entry(UDate).State = EntityState.Modified; db.SaveChanges(); } catch { throw; } }
//To Update the records of a particluar employee public void UpdateCamp(Camp Camp) { try { db.Entry(Camp).State = EntityState.Modified; db.SaveChanges(); } catch { throw; } }
//To Update the records of a particluar Student public void UpdateStudent(Student Student) { try { db.Entry(Student).State = EntityState.Modified; db.SaveChanges(); } catch { throw; } }
//To Update the records of a particluar Class public void UpdateClass(Class Class) { try { db.Entry(Class).State = EntityState.Modified; db.SaveChanges(); } catch { throw; } }