public void init_car(otherCar loc1) { loc1.manufacturer = "s"; loc1.model = "s"; db.otherCars.Add(loc1); db.SaveChanges(); }
public void update(otherCar loc1, int locid) { otherCar oc1; oc1 = db.otherCars.ToList <otherCar>().Find(o => o.id == locid /*loc1.id*/); oc1.manufacturer = loc1.manufacturer; oc1.model = loc1.model; db.SaveChanges(); }