public override async Task <HotelBookRecordList> getHotelBookRecordByMemberId(MemberIdRequest request, ServerCallContext context) { try { HotelBookRecordList hotelBookRecordList = new HotelBookRecordList(); var list = await _service.GetHotelBookRecordByMemberId(request.MemberId); var result = Mapper.Map <List <HotelBookRecord>, List <HotelBookRecordStructVM> >(list); hotelBookRecordList.Listdata.AddRange(result); hotelBookRecordList.Total = result.Count; return(hotelBookRecordList); } catch (Exception ex) { LogHelper.Error(this, ex); throw ex; } }
public static HotelBookRecordList getHotelBookRecordByMemberId(MemberIdRequest memberId) { return(_client.getHotelBookRecordByMemberId(memberId)); }
public IActionResult getHotelBookRecordByMemberId(MemberIdRequest memberId) { var result = EGClient.getHotelBookRecordByMemberId(memberId); return(Ok(result)); }