Example #1
0
        /// <summary>
        /// Sets the error message.
        /// </summary>
        /// <param name="error">Error Message</param>
        /// <param name="errorManagement">Error Management</param>
        /// <returns></returns>
        protected bool SetErrorMessage(string error, ErrorManagement errorManagement)
        {
            SetErrorMessage(error);
            SetErrorMessage(errorManagement);

            return(false);
        }
Example #2
0
        /// <summary>
        /// Sets the error message.
        /// </summary>
        /// <param name="errorManagement">Error Management</param>
        /// <returns></returns>
        public bool SetErrorMessage(ErrorManagement errorManagement)
        {
            if (errorManagement.ErrorMessages == null)
            {
                return(false);
            }

            if (ErrorMessages == null)
            {
                ErrorMessages = new List <string>();
            }

            ErrorMessages.AddRange(errorManagement.ErrorMessages);

            return(false);
        }
Example #3
0
        /// <summary>
        /// Sets the error message.
        /// </summary>
        /// <param name="error">Error Message</param>
        /// <param name="errorManagement">Error Management</param>
        /// <returns></returns>
        protected bool SetErrorMessage(string error, ErrorManagement errorManagement)
        {
            SetErrorMessage(error);
            SetErrorMessage(errorManagement);

            return false;
        }
Example #4
0
        /// <summary>
        /// Sets the error message.
        /// </summary>
        /// <param name="errorManagement">Error Management</param>
        /// <returns></returns>
        public bool SetErrorMessage(ErrorManagement errorManagement)
        {
            if (errorManagement.ErrorMessages == null)
                return false;

            if (ErrorMessages == null)
                ErrorMessages = new List<string>();

            ErrorMessages.AddRange(errorManagement.ErrorMessages);

            return false;
        }