using AccountsDAL.DTO.Address; using GB5Shared.DTO.Framework.Login; using System.Data.Common; using System.Threading.Tasks; namespace AccountsDAL.CustomCode.Address { public interface IAddressDAL { // Duplicate-tolerant lookup — used by PartyBLL to decide insert-vs-update for a // branch's address rather than trusting whatever AddressId the caller posted. Task FindAddress(int ObjectTypeId, int ObjectId, LoginDTO loginDTO, DbTransaction? transaction = null); Task SaveAddress(AddressDTO addressDTO, string LanguageId, LoginDTO loginDTO, DbTransaction? transaction = null); Task UpdateAddress(AddressDTO addressDTO, LoginDTO loginDTO, DbTransaction? transaction = null); } }