예제 #1
0
 public void UpdateDivition(Models.Divition dv)
 {
     userEntities.Entry(dv).State = System.Data.Entity.EntityState.Modified;
     userEntities.SaveChanges();
 }
예제 #2
0
 public void InserDivition(Models.Divition dv)
 {
     userEntities.Divitions.Add(dv);
     userEntities.SaveChanges();
 }