コード例 #1
0
        public ActionResult Create()
        {
            TravelSession             obj             = (TravelSession)Session["TravelPortalSessionInfo"];
            string                    DistributorCode = mDealProvider.GetDistributorCodeByDistributorId(obj.LoginTypeId);
            MasterBranchDealviewModel viewmodel       = new MasterBranchDealviewModel()
            {
                DealMasterList  = mDealProvider.GetAllDistributorDealMasterList(1, obj.LoginTypeId),
                DistributorCode = DistributorCode
            };

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