public async Task <Certificacao> AddAsync(Certificacao entity)
        {
            await _context.Certificacoes.AddAsync(entity);

            await _context.SaveChangesAsync();

            return(entity);
        }
        public Task <Certificacao> Post([FromBody] CertificacaoCreate novo)
        {
            var trilha = new Certificacao {
                Codigo = novo.Codigo, Descricao = novo.Descricao, Provedor = novo.Provedor
            };

            return(_certificadoRepository.AddAsync(trilha));
        }
        public async Task <Certificacao> UpdateAsync(Certificacao entity)
        {
            var entityDatabase = await GetAsync(entity.Id);

            this._context.Entry(entityDatabase).CurrentValues.SetValues(entity);
            await _context.SaveChangesAsync();

            return(entity);
        }