Пример #1
0
        public JsonResult ChangeStatusForAllGroups(bool isActiveForAll)
        {
            try
            {
                _UserDetailsBusinessLogic = new UserDetailsBusinessLogic();
                bool isSuccess = false;

                isSuccess = _UserDetailsBusinessLogic.ChangeStatusForAllGroups(isActiveForAll);

                return(Json(isSuccess));
            }
            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));
            }
        }