using CAPI.Custom.Repositories; using CAPI.Custom.Services.Events.Quotes; namespace CAPI.Custom.Services.EventHandlers.Quotes { public class QuoteUpdatedHandler : IHandler { QuoteRepository repository = new QuoteRepository(); public void Handle(QuoteUpdatedEvent domainEvent) { repository .UpdateSaleAndExtraNote(domainEvent.QuoteId) .Save(); } } }