private void SaveEmployerChanges()
        {
            Name = Name.Trim();

            _employer.Name = Name;
            _employerFacade.Save(_employer);

            EmployerNameSaveCommand.RaiseCanExecuteChanged();
        }
Пример #2
0
        private void SaveNewEmployer()
        {
            Employer e = new Employer(NewEmployerName.Trim());

            _employerFacade.Save(e);

            Employers.Insert(0, CreateEmployerItemViewModel(e));

            NewEmployerName = null;
        }