// POST: api/Restaurant public async Task <IHttpActionResult> Post([FromBody] RestaurantBindingModel restaurant) { var created = await _restaurants.Create(restaurant); return(Created("api/restaurants/" + created.Id, created)); }
// POST: api/Restaurant public async Task <IHttpActionResult> Post([FromBody] RestaurantBindingModel restaurant) { var created = await _restaurants.Create(restaurant); return(Created("api/restaurants/" + created.Id, created)); }