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