public async Task updateByFieldMateria(Materium materia) { _context.Materia.Attach(materia).State = EntityState.Modified; await _context.SaveChangesAsync(); }
public async Task updateMateria(Materium materia) { _context.Materia.Update(materia); await _context.SaveChangesAsync(); }
public async Task deleteMateria(Materium materia) { _context.Materia.Remove(materia); await _context.SaveChangesAsync(); }