public IActionResult FindByTourId(string yachtTourIdEncrypted) { var tourId = DecryptValue(yachtTourIdEncrypted); var baseresponse = _yachtTourOperationDetailService.FindByTourId(tourId); if (baseresponse.IsSuccessStatusCode) { return(Ok(baseresponse)); } return(BadRequest()); }
private List <YachtBasicProfileModel> GetListYachtByTourId(int tourId) { var listTours = _yachtTourOperationDetailService.FindByTourId(tourId); var listYacht = listTours.IsSuccessStatusCode ? listTours.ResponseData .Select(k => _yachtService.GetYachtBasicProfile(k.YachtFid.Decrypt().ToInt32())?.ResponseData) .ToList() : new List <YachtBasicProfileModel>(); return(listYacht); }