public ActionResult Application_Create2(int vendorId) { var claimSets = _claimSetBusiness.GetClaimSetsWithDetails() .Select(c => new SelectListItem { Text = c.ClaimSetName, Value = c.ClaimSetName }).ToList(); claimSets.Insert(0, new SelectListItem { Text = "", Value = "" }); ViewData[Constants.CLAIMSET_MODELS] = claimSets; var profiles = _profileBusiness.Get() .Select(p => new SelectListItem { Text = p.ProfileName, Value = p.ProfileId.ToString() }).ToList(); profiles.Insert(0, new SelectListItem { Text = "", Value = "" }); ViewData[Constants.PROFILE_MODELS] = profiles; var model = new ApplicationModel { VendorVendorId = vendorId, Action = "Application_Create2", Title = "New Application" }; return(PartialView("_Application", model)); }