/////////////////


        ///////////////////////////Brnach Deal Setup Action Starts Here/////////////////////////////
        public ActionResult AjaxBranchDealDetail(int id, string source)
        {
            TravelSession       obj       = (TravelSession)Session["TravelPortalSessionInfo"];
            BranchDealViewModel viewModel = new BranchDealViewModel();

            viewModel = bDealProvider.GetDealDetail(id);
            viewModel.AirlineNameList = bDealProvider.GetAllAirlineNameList();
            viewModel.DealMasterList  = bDealProvider.GetAllBranchDealMasterList(1, obj.LoginTypeId);
            viewModel.CurrencyList    = bDealProvider.GetCurrencyList();

            if (Request != null && Request.IsAjaxRequest())
            {
                return(PartialView("VUC_BranchDealEdit", viewModel));
            }
            else
            {
                return(View(viewModel));
            }
        }
        public ActionResult Index(int?id, string FilterDealIdentifierId, int?FilterAirlineId, int?FilterCurrencyId)
        {
            TravelSession       obj       = (TravelSession)Session["TravelPortalSessionInfo"];
            var                 dealtype  = mDealProvider.GetDistributorDealMasterById(id ?? 0);
            BranchDealViewModel viewmodel = new BranchDealViewModel();

            viewmodel.AirlineNameList = mDealProvider.GetAllAirlineNameList();
            viewmodel.DealMasterList  = mDealProvider.GetAllDistributorDealMasterList(1, obj.LoginTypeId);

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

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