public async Task <ActionResult <Amenity> > DeleteAmenity(int id) { await _amenity.DeleteAmenity(id); return(NoContent()); }
public async Task <IActionResult> DeleteConfirmed(int id) { await _amenity.DeleteAmenity(id); return(RedirectToAction(nameof(Index))); }