예제 #1
0
      public async Task <ActionResult <Amenity> > DeleteAmenity(int id)
      {
          await _amenity.DeleteAmenity(id);

          return(NoContent());
      }
예제 #2
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            await _amenity.DeleteAmenity(id);

            return(RedirectToAction(nameof(Index)));
        }