namespace IWS5.Core.Models;

public record Response<T> where T : class
{
    public Response(T responseModel, bool success, string? message = null)
    {
        ResponseModel = responseModel;
        Message = message ?? string.Empty;
        Success = success;
    }

    public T ResponseModel { get; private set; }
    public string? Message { get; private set; }
    public bool Success { get; private set; }
}
