public Shelf addShelf(int location, int capacity, int wardrobe_id) { Shelf shelf = new Shelf(); shelf.location = location - 1; shelf.capacity = capacity; shelf.id_wardrobe = wardrobe_id; DBconnection.DBCONNECTION.Shelf.InsertOnSubmit(shelf); DBconnection.DBCONNECTION.SubmitChanges(); return(shelf); }
public void setShelf(MapDB.Shelf shelf) { newItem.id_shelf = shelf.id_shelf; }