Пример #1
0
 public void Post([FromBody] Restaurant restaurant)
 {
     _db.Restaurants.Add(restaurant);
     _db.SaveChanges();
 }
Пример #2
0
 public void Post([FromBody] Shop shop)
 {
     _db.Shops.Add(shop);
     _db.SaveChanges();
 }
Пример #3
0
 public void Post([FromBody] Business business)
 {
     _db.Businesses.Add(business);
     _db.SaveChanges();
 }