예제 #1
0
 public bool Update(Shop shop)
 {
     db.Entry(shop).State = EntityState.Modified;
     db.SaveChanges();
     return(true);
 }
예제 #2
0
 public bool Save(Shop shop)
 {
     db.Shops.Add(shop);
     db.SaveChanges();
     return(true);
 }