public static void Handled(this ErrorItem item) { if (_messages.Any(x => x == item)) { _messages.Remove(item); } }
public static void ThrowNew(ErrorItem error) { if (_messages == null) { _messages = new List <ErrorItem>(); } _messages.Add(error); }