public PartialViewResult GetPropertyDetails(bool IsView, string SecurityId) { var model = new SecurityPropertyViewModel(); SelectList lstType = new SelectList(_clsGlobal.GetListOfValue("PROPERTY_TYPE_LEVEL1", "", "O", "", ""), "Value", "Text"); ViewBag.PropertyTypeLevel1 = lstType; lstType = new SelectList(_clsGlobal.GetListOfValue("PROPERTY_TYPE_LEVEL2", "", "O", "", ""), "Value", "Text"); ViewBag.PropertyTypeLevel2 = lstType; lstType = new SelectList(_clsGlobal.GetListOfValue("SECURITY_ITEM_STATUS", "", "O", "", ""), "Value", "Text"); ViewBag.StatusList = lstType; if (!string.IsNullOrEmpty(SecurityId)) { model = _clsSecurity.GetSecurityPropertyDetails(SecurityId, "Security_PropertyMortgagor"); } ViewBag.Viewable = IsView; return(PartialView("_PropertyPartialView", model)); }