namespace InnovEnergy.API; public class Result { public String Message { get; } public Boolean Succeeded { get; } public Boolean Failed => !Succeeded; public static Result Success(String message = "") => new Result(message, succeeded: true); public static Result Failure(String message = "") => new Result(message, succeeded: false); private Result(String message, Boolean succeeded) { Message = message; Succeeded = succeeded; } }