public void Create(Funcionario model) { using (var db = new ParkingSystemDBContext()) { db.Funcionario.Add(model); db.SaveChanges(); } }
public void Update(Funcionario model) { using (var db = new ParkingSystemDBContext()) { db.Entry(model).State = EntityState.Modified; db.SaveChanges(); } }
public void Destroy(Funcionario model) { using (var db = new ParkingSystemDBContext()) { db.Entry(model).State = EntityState.Deleted; db.SaveChanges(); } }
public void Create(VagaTipo model) { using (var db = new ParkingSystemDBContext()) { db.VagaTipo.Add(model); db.SaveChanges(); } }
public void Create(ComandaStatus model) { using (var db = new ParkingSystemDBContext()) { db.ComandaStatus.Add(model); db.SaveChanges(); } }
public void Create(Cliente model) { using (var db = new ParkingSystemDBContext()) { db.Cliente.Add(model); db.SaveChanges(); } }