Beispiel #1
0
 public void Excluir(ReceitaIngredientes entity)
 {
     _context.Entry(entity).State = EntityState.Deleted;
     _context.SaveChanges();
 }
Beispiel #2
0
 public void Incluir(ReceitaIngredientes entity)
 {
     _context.ReceitaIngredientes.Add(entity);
     _context.SaveChanges();
 }
Beispiel #3
0
 public void Atualizar(ReceitaIngredientes entity)
 {
     _context.Entry(entity).State = EntityState.Modified;
     _context.SaveChanges();
 }