示例#1
0
        public JsonResult GetUserGroupNamesForAutoComplete(string userGroupName)
        {
            try
            {
                _UserDetailsBusinessLogic = new UserDetailsBusinessLogic();

                var resultArr = _UserDetailsBusinessLogic.GetUserGroupNamesForAutoComplete(userGroupName);


                return(Json(resultArr));
            }
            catch (Exception ex)
            {
                currentFile = this.ControllerContext.RouteData.Values["controller"].ToString(); // System.Diagnostics.StackTrace(true).GetFrame(0).GetFileName();
                StackTrace st = new StackTrace();
                StackFrame sf = st.GetFrame(0);
                methodName = sf.GetMethod().Name;
                ErrorLogHelper.UpdatingErrorLog(currentFile + "-" + methodName, "UName", ex);
                return(Json(false));
            }
        }