public void Update( State state ) { if (state == null) return; db.Entry( state ).State = EntityState.Modified; db.SaveChanges(); }
public void Save( State state ) { if (state == null) return; db.States.Add( state ); db.SaveChanges(); }