Exemplo n.º 1
0
 public static ResponseBase Unsuccessful(BankClientException ex)
 {
     return(new ResponseBase()
     {
         IsSuccess = false,
         ErrorMessage = new Error()
         {
             Code = ex.Code,
             Description = ex.Message
         }
     });
 }
Exemplo n.º 2
0
 public static TResponse Unsuccessful <TResponse>(BankClientException ex)
     where TResponse : ResponseBase, new()
 {
     return(new TResponse()
     {
         IsSuccess = false,
         ErrorMessage = new Error()
         {
             Code = ex.Code,
             Description = ex.Message
         }
     });
 }