public void NewInstitution() { using (var ctx = new PayrollDB(Properties.Settings.Default.PayrollDB)) { DataLayer.Institution newemp = ctx.Institutions.CreateObject(); ctx.Institutions.AddObject(newemp); CurrentInstitution = newemp; } OnPropertyChanged("CurrentInstitution"); }
public void EditAccount(DataLayer.Institution acc) { CurrentInstitution = acc; }