public void AddErrorMessage(Enum errorCode, params object[] errorParameters) { var message = new DomainErrorMessage(errorCode, DomainErrorResource.GetResourceTextWithParsedParamsByCode(errorCode, errorParameters)); errorMessages.Add(message); }
public void AddErrorMessage(Enum errorCode) { var message = new DomainErrorMessage(errorCode, DomainErrorResource.GetResourceTextByCode(errorCode)); errorMessages.Add(message); }