public ActionResult PropertyNew(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 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;
            ViewData["IsNew"]          = true;
            return(View(model));
        }
        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));
        }