Beispiel #1
0
 public static Envelope <T> AddError <T>(this Envelope <T> envelope, ErrorType errorType)
 {
     if (envelope.Errors == null)
     {
         envelope.Errors = new List <Error>();
     }
     envelope.Errors.Add(errorType.GetError());
     return(envelope);
 }