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