Example #1
0
 public static CallMessagesResult <T> Fail(MessageString message, Exception ex)
 {
     return(new CallMessagesResult <T>()
     {
         Messages = new List <MessageString> {
             message
         },
         Exception = ex,
         Status = CallStatus.Fail
     });
 }
Example #2
0
 public static CallMessagesResultVoid Fail(string message, Exception ex)
 {
     return(new CallMessagesResultVoid()
     {
         Messages = new List <MessageString> {
             MessageString.Error(message)
         },
         Exception = ex,
         Status = CallStatus.Fail
     });
 }