namespace Campaign_Tracker.Server.ElectionCycles; public sealed record ElectionCycleJobSaveResult { public bool Saved { get; init; } public string? Error { get; init; } public ElectionCycleJob? Job { get; init; } public static ElectionCycleJobSaveResult Success(ElectionCycleJob job) => new() { Saved = true, Job = job }; public static ElectionCycleJobSaveResult Failure(string error) => new() { Saved = false, Error = error }; }