Exemple #1
0
        public void DeleteOpportunityBuyer(int buyerId)
        {
            int opportunityId = opportunityRepository.DeleteOpportunityBuyer(buyerId);

            if (opportunityId != 0)
            {
                Opportunity updatedOpportunity = opportunityRepository.FindBy(opportunityId);

                if (indexingService.Update <Opportunity>(updatedOpportunity) > 0)
                {
                    Logger.Current.Verbose("Opportunity updated to elasticsearch successfully");
                }
            }
        }