public static ExcuteResult <T> Ok <T>(this ExcuteResult <T> @this, Action <T> action) { return(@this.On(r => r.Success, t => action(t.Result))); }
public static ExcuteResult <T> Error <T>(this ExcuteResult <T> @this, Action <Exception> action) { return(@this.On(r => !r.Success, t => action(t.Exception))); }
public static ExcuteResult Ok(this ExcuteResult @this, Action action) { return(@this.On(r => r.Success, t => action())); }