/// <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); }
/// <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); }
/// <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; }
/// <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; }