public void AddWarehouse(Warehouse warehouse)
        {
            Debug.Assert(warehouse != null, "The given warehouse argument should not be null");

            db.Warehouses.Add(warehouse);
            db.SaveChanges();
        }
Esempio n. 2
0
 public void AddRegion(Region region)
 {
     db.Regions.Add(region);
     db.SaveChanges();
 }