예제 #1
0
        ///////////////////////////Deal Setup Action Starts Here/////////////////////////////
        public ActionResult AjaxDealDetail(int id, string source)
        {
            ATLTravelPortal.Areas.Airline.Repository.MasterDealProvider masDealProvider = new ATLTravelPortal.Areas.Airline.Repository.MasterDealProvider();
            BranchDealProvider mbDealProvider = new BranchDealProvider();

            DealViewModel viewModel = new DealViewModel();

            viewModel = masDealProvider.GetBusDealDetail(id);

            viewModel.DealMasterList      = masDealProvider.GetAllDealMasterList(4);
            viewModel.DealAppliedOnList   = masDealProvider.GetAllDealAppliedOnList();
            viewModel.DealCalculateOnList = masDealProvider.GetAllDealCalculateOnList();

            viewModel.BusOperatorList = mbDealProvider.GetAllBusOperatorList();
            viewModel.BusCategoryList = mbDealProvider.GetAllBusCategoryList(viewModel.BusOperatorId ?? 0);

            viewModel.CurrencyList       = masDealProvider.GetCurrencyList().Where(x => x.Value == "1");
            viewModel.DealIdentifierList = masDealProvider.GetBusDealIdentifiers(masDealProvider.GetDealMasterById(viewModel.DealMasterId).DealTypeId);


            if (Request != null && Request.IsAjaxRequest())
            {
                return(PartialView("VUC_DealEdit", viewModel));
            }
            else
            {
                return(View(viewModel));
            }
        }
예제 #2
0
        public ActionResult AjaxDealCancel(int id)
        {
            ATLTravelPortal.Areas.Airline.Repository.MasterDealProvider masDealProvider = new ATLTravelPortal.Areas.Airline.Repository.MasterDealProvider();
            DealViewModel viewModel = new DealViewModel();

            viewModel = masDealProvider.GetBusDealDetail(id);

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