Ejemplo n.º 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));
            }
        }
Ejemplo n.º 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));
            }
        }