Пример #1
0
        public JsonResult GetUnderusercode(string userCode)
        {
            BLUser _objUser    = new BLUser();
            string companyCode = _objcurrentInfo.GetCompanyCode();
            List <PasswordDetails> underUserlst = new List <MVCModels.PasswordDetails>();

            try
            {
                underUserlst = _objUser.GetUnderusercode(companyCode, userCode).ToList();
            }
            catch (Exception ex)
            {
                Dictionary <string, string> dicObj = new Dictionary <string, string>();
                dicObj.Add("companyCode", companyCode);
                dicObj.Add("userCode", userCode);
                DataControl.Impl.ExceptionHandler.WriteLog(ex: ex, dic: dicObj);
                return(Json("FAILURE", JsonRequestBehavior.AllowGet));
            }
            return(Json(underUserlst, JsonRequestBehavior.AllowGet));
        }