Beispiel #1
0
        private void btn_update_Click(object sender, EventArgs e)
        {
            var disciplineService = new DisciplineService(_unit, _unit);
            var discipline        = disciplineService.GetDisciplineById(_entityId);

            discipline.Name = NameText;
            disciplineService.UpdateDiscipline(discipline);
            _unit.Commit();
            _context.Dispose();
            this.Close();
        }