public static Boolean updateCoach(LegaGladio.Entities.Coach coach, int oldID) { LegaGladioDSTableAdapters.coachTableAdapter cta = new LegaGladioDSTableAdapters.coachTableAdapter(); LegaGladioDS.coachDataTable cdt = new LegaGladioDS.coachDataTable(); LegaGladioDS.coachRow cr = (LegaGladioDS.coachRow)cdt.NewRow(); cr.id = oldID; cr.name = coach.Name; cr.active = coach.Active; cr.nafID = coach.NafID; cr.nafNick = coach.NafNick; cr.note = coach.Notes; cr.value = coach.Value; int result = cta.Update(cr); return result > 0; }