Exemplo n.º 1
0
 public Boolean CheckUniqeness(int partyTypeId, int partyId, string hash)
 {
     using (PartyManager partyManager = new PartyManager())
         using (PartyTypeManager partyTypeManager = new PartyTypeManager())
         {
             PartyType partyType = partyTypeManager.PartyTypeRepository.Get(partyTypeId);
             Party     party     = partyManager.PartyRepository.Get(partyId);
             return(partyManager.CheckUniqueness(partyManager.PartyRepository, partyType, hash, party));
         }
 }
Exemplo n.º 2
0
        public Boolean CheckUniqeness(int partyTypeId, int partyId, string hash)
        {
            PartyManager partyManager = null;

            try
            {
                partyManager = new PartyManager();
                PartyType partyType = new PartyTypeManager().PartyTypeRepository.Get(partyTypeId);
                Party     party     = partyManager.PartyRepository.Get(partyId);
                return(partyManager.CheckUniqueness(partyManager.PartyRepository, partyType, hash, party));
            }
            finally { partyManager?.Dispose(); }
        }