Example #1
0
 public async Task Alterar(TipoDeConteudo tipoDeConteudo)
 {
     _dataContext.Update(tipoDeConteudo);
     await _dataContext.SaveChangesAsync();
 }
Example #2
0
 public async Task Excluir(TipoDeConteudo tipoDeConteudo)
 {
     _dataContext.Remove(tipoDeConteudo);
     await _dataContext.SaveChangesAsync();
 }
Example #3
0
 public async Task Criar(TipoDeConteudo tipoDeConteudo)
 {
     _dataContext.TipoDeConteudos.Add(tipoDeConteudo);
     await _dataContext.SaveChangesAsync();
 }