public void Remover(int id) { Entities.tb_cpp remover = db.tb_cpp.First(t => t.id_cpp == id); db.tb_cpp.Remove(remover); db.SaveChanges(); }
public void Alterar(Entities.tb_cpp cpp) { Entities.tb_cpp list = db.tb_cpp.First(t => t.id_cpp == cpp.id_cpp); list.vl_cpp = list.vl_cpp; list.vl_fgts = list.vl_fgts; db.SaveChanges(); }
public void Inserir(Entities.tb_cpp cpp) { db.tb_cpp.Add(cpp); db.SaveChanges(); }