示例#1
0
 public async Task <ActionResult <List <Accommodation> > > GetAllAccommodationsOfAUserAsync([FromRoute] int userid)
 {
     try
     {
         return(await _accommodationService.GetAllOwnedAccommodationsAsync(userid));
     }
     catch (Exception ex)
     {
         return(NotFound(ex.Message));
     }
 }