Beispiel #1
0
        public ActionResult Index(BranchDealViewModel model)
        {
            TravelSession obj = (TravelSession)Session["TravelPortalSessionInfo"];

            model.MakerId    = obj.AppUserId;
            model.MakerDate  = DateTime.Now;
            model.isVerified = false;
            model.isDelete   = false;

            mDealProvider.Update_Bus_BranchDeals(model);

            BranchDealViewModel viewmodel = new BranchDealViewModel()
            {
                //AirlineNameList = mDealProvider.GetAllAirlineNameList(),
                CurrencyList   = mDealProvider.GetCurrencyList(),
                DealMasterList = mDealProvider.GetAllBranchDealMasterList(4, obj.LoginTypeId),
                DealList       = mDealProvider.GetAllBusDistributorDeals(model.DealMasterId, null, null)
            };

            if (Request != null && Request.IsAjaxRequest())
            {
                return(PartialView("DisplayDealTemplate", viewmodel));
            }
            else
            {
                return(View(viewmodel));
            }
        }
Beispiel #2
0
        public ActionResult Index(int?id, int?FilterBusOperatorId, int?FilterBusCategoryId)
        {
            TravelSession       obj       = (TravelSession)Session["TravelPortalSessionInfo"];
            var                 dealtype  = mDealProvider.GetDistributorDealMasterById(id ?? 0);
            BranchDealViewModel viewmodel = new BranchDealViewModel();

            viewmodel.BusOperatorList = mDealProvider.GetAllBusOperatorList();
            viewmodel.BusCategoryList = mDealProvider.GetAllBusCategoryList(FilterBusOperatorId ?? 0);
            viewmodel.DealMasterList  = mDealProvider.GetAllDistributorDealMasterList(4, obj.LoginTypeId);

            // viewmodel.CurrencyList = mDealProvider.GetCurrencyList();
            viewmodel.DealList = mDealProvider.GetAllBusDistributorDeals(id, FilterBusOperatorId, FilterBusCategoryId);

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