Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Finexkap.MicroServices.Salesforce.Models.Railway
- {
- public abstract class Result<T>
- {
- }
- public class Success<T> : Result<T>
- {
- public Success(T model)
- {
- Model = model;
- }
- public T Model { get; }
- }
- public class Failure<T> : Result<T>
- {
- public Failure(Exception exception)
- {
- Exception = exception;
- }
- public Exception Exception { get; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement