Example #1
0
        public ActionResult Index(int?id, string FilterDealIdentifierId, int?FilterHotelId, int?FilterCurrencyId)
        {
            TravelSession       obj       = (TravelSession)Session["TravelPortalSessionInfo"];
            var                 dealtype  = mDealProvider.GetDistributorDealMasterById(id ?? 0);
            BranchDealViewModel viewmodel = new BranchDealViewModel();

            viewmodel.HotelNameList  = hotelDealRepository.GetAllHotelList();
            viewmodel.DealMasterList = mDealProvider.GetAllDistributorDealMasterList(2, obj.LoginTypeId);

            viewmodel.CurrencyList = mDealProvider.GetCurrencyList();
            viewmodel.DealList     = mDealProvider.GetAllDistributorDeals(id, FilterDealIdentifierId, FilterHotelId, FilterCurrencyId);

            if (Request != null && Request.IsAjaxRequest())
            {
                return(PartialView("VUC_DealDetailList", viewmodel));
            }
            else
            {
                return(View(viewmodel));
            }
        }
Example #2
0
        ///////////////////////////Brnach Deal Setup Action Starts Here/////////////////////////////
        public ActionResult AjaxDistributorDealDetail(int id, string source)
        {
            HotelDealRepository     hotelDealRepository = new HotelDealRepository();
            HotelBranchDealProvider mDealProvider       = new HotelBranchDealProvider();
            TravelSession           obj       = (TravelSession)Session["TravelPortalSessionInfo"];
            BranchDealViewModel     viewModel = new BranchDealViewModel();

            viewModel = hotelDealRepository.GetDistributorDealDetail(id);
            viewModel.HotelNameList  = hotelDealRepository.GetAllHotelList();
            viewModel.DealMasterList = mDealProvider.GetAllDistributorDealMasterList(2, obj.LoginTypeId);
            viewModel.CurrencyList   = mDealProvider.GetCurrencyList();

            if (Request != null && Request.IsAjaxRequest())
            {
                return(PartialView("VUC_DistributorDealEdit", viewModel));
            }
            else
            {
                return(View(viewModel));
            }
        }
Example #3
0
        public ActionResult Index(int?id, string filterCountryCode, int?filterCategory, int?filterCityId, int?filterHotelId, string filterDealIdentifier, int?filterCurrency)
        {
            var dealtype = hotelDealRepository.GetDealMasterById(id ?? 0, 2);

            HotelDealViewModel viewmodel = new HotelDealViewModel()
            {
                CurrencyList       = masterDealProvider.GetCurrencyList().Where(x => x.Value == "1"),
                HotelList          = hotelDealRepository.GetAllHotelList(),
                DealMasterList     = mDealProvider.GetAllDealMasterList(2),
                DealIdentifierList = hotelDealRepository.GetDealIdentifiers(dealtype != null ? dealtype.DealTypeId : 0),
                DealList           = hotelDealRepository.GetAllDeals(id, filterCountryCode, filterCategory, filterCityId, filterHotelId, filterDealIdentifier, filterCurrency)
            };

            if (Request != null && Request.IsAjaxRequest())
            {
                return(PartialView("VUC_DealDetailList", viewmodel));
            }
            else
            {
                return(View(viewmodel));
            }
        }