diff --git a/src/Eurofurence.App.Common/Results/Result.cs b/src/Eurofurence.App.Common/Results/Result.cs index 8c481019..7250f23a 100644 --- a/src/Eurofurence.App.Common/Results/Result.cs +++ b/src/Eurofurence.App.Common/Results/Result.cs @@ -18,8 +18,8 @@ public class Result : Result, IResult public T Value { get; set; } public static explicit operator T(Result r) => r.Value; - public static Result Ok(T value) => new Result {IsSuccessful = true, Value = value}; - public static Result Error(string errorCode, string errorMessage = "") + public new static Result Ok(T value) => new Result {IsSuccessful = true, Value = value}; + public new static Result Error(string errorCode, string errorMessage = "") => new Result { IsSuccessful = false, ErrorCode = errorCode, ErrorMessage = errorMessage }; } }