namespace Shared.Contracts; /// /// Generic envelope used to wrap API responses that carry a data payload alongside a human-readable message. /// /// The type of the data payload returned in the response. public record ResponseBody { /// /// A human-readable message describing the outcome of the request. /// public required string Message { get; init; } /// /// The data payload associated with the response. /// public required T Payload { get; init; } } /// /// Envelope used to wrap API responses that carry only a human-readable message and no data payload. /// public record ResponseBody { /// /// A human-readable message describing the outcome of the request. /// public required string Message { get; init; } }