Пример #1
0
        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;
            }
        }
Пример #2
0
 public static HotelBookRecordList getHotelBookRecordByMemberId(MemberIdRequest memberId)
 {
     return(_client.getHotelBookRecordByMemberId(memberId));
 }
Пример #3
0
        public IActionResult getHotelBookRecordByMemberId(MemberIdRequest memberId)
        {
            var result = EGClient.getHotelBookRecordByMemberId(memberId);

            return(Ok(result));
        }