Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. namespace Finexkap.MicroServices.Salesforce.Models.Railway
  2. {
  3. public abstract class Result<T>
  4. {
  5.  
  6. }
  7.  
  8. public class Success<T> : Result<T>
  9. {
  10. public Success(T model)
  11. {
  12. Model = model;
  13. }
  14.  
  15. public T Model { get; }
  16. }
  17.  
  18. public class Failure<T> : Result<T>
  19. {
  20. public Failure(Exception exception)
  21. {
  22. Exception = exception;
  23. }
  24.  
  25. public Exception Exception { get; }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement