public async Task <ActionResult <Amenity> > DeleteAmenity(int id) { var amenity = await repository.DeleteAsync(id); if (amenity == null) { return(NotFound()); } return(amenity); }