Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

40 lines
1.2KB

  1. namespace Campaign_Tracker.Server.Municipalities;
  2. public interface IMunicipalityAddressRepository
  3. {
  4. Task<IReadOnlyList<MunicipalityAddress>> GetByProfileIdAsync(
  5. string profileId,
  6. CancellationToken cancellationToken = default);
  7. Task<MunicipalityAddress?> GetByIdAsync(
  8. string addressId,
  9. CancellationToken cancellationToken = default);
  10. Task<MunicipalityAddressSaveResult> AddAsync(
  11. string profileId,
  12. string addressType,
  13. string street,
  14. string city,
  15. string state,
  16. string zipCode,
  17. DateTimeOffset effectiveDate,
  18. string actorIdentity,
  19. CancellationToken cancellationToken = default);
  20. Task<MunicipalityAddressSaveResult> UpdateAsync(
  21. string addressId,
  22. string addressType,
  23. string street,
  24. string city,
  25. string state,
  26. string zipCode,
  27. DateTimeOffset effectiveDate,
  28. string actorIdentity,
  29. CancellationToken cancellationToken = default);
  30. Task<MunicipalityAddressSaveResult> SoftDeleteAsync(
  31. string addressId,
  32. string actorIdentity,
  33. CancellationToken cancellationToken = default);
  34. }

Powered by TurnKey Linux.