25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
469B

  1. namespace Campaign_Tracker.Server.ElectionCycles;
  2. public sealed record ElectionCycleJobSaveResult
  3. {
  4. public bool Saved { get; init; }
  5. public string? Error { get; init; }
  6. public ElectionCycleJob? Job { get; init; }
  7. public static ElectionCycleJobSaveResult Success(ElectionCycleJob job) =>
  8. new() { Saved = true, Job = job };
  9. public static ElectionCycleJobSaveResult Failure(string error) =>
  10. new() { Saved = false, Error = error };
  11. }

Powered by TurnKey Linux.