public PartialViewResult GetSecuritiesOrFinancialInstruments(bool IsView, string SecurityId) { var model = new SecFinInstrumentModel(); SelectList financialInstrumentType = new SelectList(_clsGlobal.GetListOfValue("SECURITIES_FINANCIAL_INSTRUMENT_TYPE", "", "O", "", ""), "Value", "Text"); ViewBag.FinancialInstruments = financialInstrumentType; SelectList lstType = new SelectList(_clsGlobal.GetListOfValue("SECURITY_ITEM_STATUS", "", "O", "", ""), "Value", "Text"); ViewBag.StatusList = lstType; if (!string.IsNullOrEmpty(SecurityId)) { model = _clsSecurity.GetSecuritiesOrFinancialInstruments(SecurityId); } ViewBag.Viewable = IsView; return(PartialView("_SecuritiesOrFinancialInstrumentsPartial", model)); }