Exemplo n.º 1
0
        // POST: api/Restaurant
        public async Task <IHttpActionResult> Post([FromBody] RestaurantBindingModel restaurant)
        {
            var created = await _restaurants.Create(restaurant);

            return(Created("api/restaurants/" + created.Id, created));
        }