public PartialViewResult GetVesselDetails(bool IsView, string SecurityId) { var model = new VesselModel(); SelectList countryList = new SelectList(_clsGlobal.GetCountry(), "Value", "Text"); ViewBag.Country = countryList; SelectList vehicleModel = new SelectList(new List <CommonDropDown>(), "value", "label"); ViewBag.VehicleModel = vehicleModel; SelectList lstType = new SelectList(_clsGlobal.GetListOfValue("SECURITY_ITEM_STATUS", "", "O", "", ""), "Value", "Text"); ViewBag.StatusList = lstType; if (!string.IsNullOrEmpty(SecurityId)) { model = _clsSecurity.GetSecurityVesselDetails(SecurityId, "Security_VesselMortgagor"); } ViewBag.Viewable = IsView; return(PartialView("_VesselPartialView", model)); }