예제 #1
0
        public async Task <ActionResult <Amenity> > PostAmenity(Amenity amenity)
        {
            await repository.CreateAsync(amenity);

            return(CreatedAtAction("GetAmenity", new { id = amenity.Id }, amenity));
        }