public async Task <bool> Handle(Approbe request, CancellationToken cancellationToken) { var opportunities = new Opportunities(context.Opportunities); var opportunity = opportunities.GetById(request.Id); opportunity.Aprobe(mailService); opportunities.Update(opportunity); var result = await context.SaveChangesAsync(); return(result > 0); }