public async Task <ActionResult> GetAccommodationPictures(int accommodationId) { try { IEnumerable <AccommodationPictureDTO> pictures = await _accommodationService.GetAccommodationPictures(accommodationId); return(Ok(pictures)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }