public ActionResult Create() { TravelSession obj = (TravelSession)Session["TravelPortalSessionInfo"]; string BranchCode = mDealProvider.GetBranchCodeByBranchId(obj.LoginTypeId); MasterBranchDealviewModel viewmodel = new MasterBranchDealviewModel() { DealMasterList = mDealProvider.GetAllBranchDealMasterList(3, obj.LoginTypeId), BranchOffices = new SelectList(distributorManagementProvider.GetBranchOffices(), "BranchOfficeId", "BranchOfficeName"), BranchOfficeCode = BranchCode }; if (Request != null && Request.IsAjaxRequest()) { return(PartialView("VUC_CreateNewDeal", viewmodel)); } else { return(View(viewmodel)); } }