private void SaveEmployerChanges() { Name = Name.Trim(); _employer.Name = Name; _employerFacade.Save(_employer); EmployerNameSaveCommand.RaiseCanExecuteChanged(); }
private void SaveNewEmployer() { Employer e = new Employer(NewEmployerName.Trim()); _employerFacade.Save(e); Employers.Insert(0, CreateEmployerItemViewModel(e)); NewEmployerName = null; }