using Service.Execute.SwapException; namespace Service.Execute; public class StateResult { public static readonly StateResult Cancel = new() { SwappingState = SwappingState.Canceled }; public SwappingState SwappingState { get; set; } public Object Model { get; set; } public static StateResult Exception(ExceptionReason exceptionReason, string msg) { return new StateResult() { SwappingState = SwappingState.Exception, Model = new ExceptionData() { ExceptionReason = exceptionReason, Msg = msg } }; } }