Exemple #1
0
        /// <summary>
        /// 查询机场信息
        /// </summary>
        /// <returns></returns>
        public ResponseBaseViewModel <SearchCityAirportResponseViewModel> SearchAirport(SearchCityAirportRequestViewModel request)
        {
            request.Cid = this.GetCid();
            SearchCityAirportResponseViewModel responseViewModel         = _searchAirportApplication.SearchAirport(request);
            ResponseBaseViewModel <SearchCityAirportResponseViewModel> v =
                new ResponseBaseViewModel <SearchCityAirportResponseViewModel>
            {
                Flag = new ResponseCodeViewModel()
                {
                    Code = 0, MojoryToken = this.GetToken()
                },
                Data = responseViewModel
            };

            return(v);
        }
Exemple #2
0
        public SearchCityAirportResponseViewModel SearchAirport(SearchCityAirportRequestViewModel request)
        {
            List <string> requestList = new List <string>();

            requestList.Add("N");
            if (request.IsInter == "I")
            {
                requestList.Add("I");
            }
            SearchCityAportModel cityAportModel = _getCityForFlightServiceBll.SearchAirport(requestList);

            SearchCityAirportResponseViewModel v =
                Mapper.Map <SearchCityAportModel, SearchCityAirportResponseViewModel>(cityAportModel);

            return(v);
        }