Exemple #1
0
        public async Task <ActionResult <AmenityDTO> > DeleteAmenity(int id)
        {
            var amenities = await _amenity.GetAmenity(id);

            if (amenities != null)
            {
                await _amenity.Delete(id);

                return(NoContent());
            }

            return(NotFound());
        }
        public async Task <ActionResult <Amenity> > DeleteAmenity(int id)
        {
            await _amenity.Delete(id);

            return(NoContent());
        }