예제 #1
0
        public async Task <ActionResult <Amenity> > AddAmenityToRoom(int roomId, int amenityId)
        {
            await repository.AddAmenityToRoom(roomId, amenityId);

            return(CreatedAtAction(nameof(AddAmenityToRoom), new { roomId, amenityId }, null));
        }