public void Put(int id, [FromBody] Shop shop)
 {
     shop.ShopId           = id;
     _db.Entry(shop).State = EntityState.Modified;
     _db.SaveChanges();
 }
 public void Put(int id, [FromBody] Restaurant restaurant)
 {
     restaurant.RestaurantId     = id;
     _db.Entry(restaurant).State = EntityState.Modified;
     _db.SaveChanges();
 }