public int update_teacher(tbl_teacher_presonal_information tb) { db.Entry(tb).State = System.Data.Entity.EntityState.Modified; return(db.SaveChanges()); }
public tbl_teacher_presonal_information find_teacher(string code_national_teacher) { tbl_teacher_presonal_information teacher = db.tbl_teacher_presonal_information.Where(c => c.code_national_teacher == code_national_teacher).SingleOrDefault(); return(teacher); }
public int insert_teacher(tbl_teacher_presonal_information tb) { db.tbl_teacher_presonal_information.Add(tb); return(db.SaveChanges()); }
public int delete_teacher(tbl_teacher_presonal_information tb) { db.tbl_teacher_presonal_information.Remove(tb); return(db.SaveChanges()); }