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

            viewmodel.DealMasterList     = mDealProvider.GetAllBranchDealMasterList(3, obj.LoginTypeId);
            viewmodel.DealIdentifierList = masterDealProvider.GetMobileServiceProviders();

            viewmodel.DealList = mDealProvider.GetAllMobileBranchDeals(id, FilterDealIdentifierId);

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