コード例 #1
0
        private async void OnUpdateSpecialty()
        {
            SelectedSpeciality.Faculty = Faculties.FirstOrDefault(f => f.FacultyId == SelectedSpeciality.FacultyId);

            var result = await _repo.UpdateSpecialtyAsync(SelectedSpeciality);

            var specialty = Specialities.FirstOrDefault(s => s.SpecialtyId == SelectedSpeciality.SpecialtyId);

            specialty.CopyProperties(SelectedSpeciality);
        }