public ActionResult SecuritiesOrFinancialInstrumentsNew(string SubMenuId)
        {
            #region Check UserGroup when user direct key in URL
            if (!(_clsGlobal.CheckUserGroup(((ClaimsIdentity)User.Identity).FindFirst("UserGroupCode").Value, Convert.ToInt16(SubMenuId))))
            {
                ViewData["Message"] = "You Have No Access Rights For This Module!, error: Invalid Access Rights";
            }
            #endregion  Check UserGroup when user direct key in URL
            var model = new SecFinInstrumentModel();

            SelectList financialInstrumentType = new SelectList(_clsGlobal.GetListOfValue("SECURITIES_FINANCIAL_INSTRUMENT_TYPE", "", "O", "", ""), "Value", "Text");
            ViewBag.FinancialInstrumentType = financialInstrumentType;
            ViewData["IsNew"] = true;
            return(View(model));
        }
        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));
        }