// GET: Amenities
 public async Task <IActionResult> Index()
 {
     return(View(await _amenity.GetAmenities()));
 }
Exemple #2
0
 public async Task <ActionResult <IEnumerable <Amenity> > > GetAmenities()
 {
     return(Ok(await _amenity.GetAmenities()));
 }
 public async Task <ActionResult <List <AmenityDTO> > > GetAmenities()
 {
     return(await _amenity.GetAmenities());
 }