Esempio n. 1
0
        public async Task <ActionResult <Amenity> > DeleteAmenity(int id)
        {
            var amenity = await repository.DeleteAsync(id);

            if (amenity == null)
            {
                return(NotFound());
            }

            return(amenity);
        }