namespace YaleAccess.Models { public class ApiResponse { public bool Success { get; set; } public string? Error { get; set; } public object? Data { get; set; } /// /// If passing in data only then the resonse is successful /// /// public ApiResponse(object data) { Success = true; Data = data; } /// /// If passing in an error then the response is not successful /// /// public ApiResponse(string error) { Success = false; Error = error; } } }