예제 #1
0
 public async Task <ActionResult <List <Accommodation> > > GetAllAccommodationsInTheSystemAsync()
 {
     try
     {
         return(await _accommodationService.GetAllAccommodationsAsync());
     }
     catch (Exception ex)
     {
         return(NotFound(ex.Message));
     }
 }