No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

23 líneas
743B

  1. namespace Campaign_Tracker.Server.Municipalities;
  2. public sealed record MunicipalityContactSaveResult
  3. {
  4. public bool Saved { get; init; }
  5. public bool IsNotFound { get; init; }
  6. public string? Error { get; init; }
  7. public MunicipalityContact? Contact { get; init; }
  8. public static MunicipalityContactSaveResult Success(MunicipalityContact contact) =>
  9. new() { Saved = true, Contact = contact };
  10. public static MunicipalityContactSaveResult Failure(string error) =>
  11. new() { Saved = false, Error = error };
  12. public static MunicipalityContactSaveResult NotFound(string contactId) =>
  13. new()
  14. {
  15. IsNotFound = true,
  16. Error = $"Contact '{contactId}' not found."
  17. };
  18. }

Powered by TurnKey Linux.