Exemple #1
0
 public async Task InserirAsync(Produto produto)
 {
     _context.Add(produto);
     await _context.SaveChangesAsync();
 }
Exemple #2
0
 public async Task InserirAsync(Categoria categoria)
 {
     _context.Add(categoria);
     await _context.SaveChangesAsync();
 }