public static Result Fail(string message, PostResultActionType postResultAction) { return(new Result(ResultStatus.Error, message, postResultAction)); }
public static Result <T> Fail <T>(string message, PostResultActionType postResultAction) { return(new Result <T>(default(T), ResultStatus.Error, message, postResultAction)); }
protected Result(ResultStatus status, string message = null, PostResultActionType postResultAction = PostResultActionType.CanContinue) { this.PostResultAction = postResultAction; this.Status = status; this.Message = message; }