예제 #1
0
 public void AddNewTrouser(Trouser trouser)
 {
     context.Trouser.Add(trouser);
     context.SaveChanges();
 }
예제 #2
0
 public void UpdateTrouser(Trouser trouser)
 {
     context.Entry(trouser).State = EntityState.Modified;
     context.SaveChanges();
 }