Ejemplo n.º 1
0
 public ResponseResultViewModel(IEnumerable <string> messages)
 {
     messages = messages ?? new List <string>();
     Messages = messages.ToList();
     Reason   = FailureReasonCode.General;
 }
Ejemplo n.º 2
0
 public ResponseResultViewModel Failure(FailureReasonCode reason)
 {
     Reason = reason;
     return(Failure());
 }