Class Result
Result object without payload.
public record Result : IEquatable<Result>
- Inheritance
-
Result
- Implements
- Derived
- Inherited Members
Properties
Code
Used for specific mathing of errors.
public string Code { get; protected init; }
Property Value
IsSuccess
True if the call was successful
public bool IsSuccess { get; }
Property Value
Message
Response message.
public string Message { get; protected init; }
Property Value
Success
Build a success response without data.
public static Result Success { get; }
Property Value
Methods
Fail(string, string)
Build a fail response without data.
public static Result Fail(string message, string code)