Example #1
0
        public Boolean ValidateFields(Object obj)
        {
            List <String> resourceErrorList;
            var           isValid = GlossaryHelper.ValidateFields(obj, out resourceErrorList);

            if (!isValid)
            {
                View.ShowErrors(resourceErrorList);
            }
            return(isValid);
        }
Example #2
0
        public Boolean ValidateFields(Object obj)
        {
            var litePerson = CurrentManager.GetLitePerson(UserContext.CurrentUserID);

            if (UserContext.isAnonymous || litePerson == null)
            {
                View.SendUserAction(View.IdCommunity, Service.GetServiceIdModule(), ModuleGlossaryNew.ActionType.NoPermission);
                View.DisplaySessionTimeout();
                return(false);
            }
            List <String> resourceErrorList;
            var           result = GlossaryHelper.ValidateFields(obj, out resourceErrorList);

            if (!result)
            {
                View.ShowErrors(resourceErrorList);
            }
            return(result);
        }