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