示例#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)));
        }