public int getLastID()
 {
     locationClothes   = new LocationClothes();
     locationClothesDB = new LocationClothesDB();
     locationClothesDB.selectLastID(locationClothes);
     return(locationClothes.getID());
 }
    public void update(double total, string locationName)
    {
        locationControl   = new LocationControl();
        locationClothes   = new LocationClothes();
        locationClothesDB = new LocationClothesDB();
        int ID = locationControl.getID(locationName);

        locationClothes.setLocationID(ID);
        locationClothes.setTotal(total);
        locationClothesDB.updateTotal(locationClothes);
    }
    public double getTotal(string locationName)
    {
        locationControl   = new LocationControl();
        locationClothes   = new LocationClothes();
        locationClothesDB = new LocationClothesDB();
        int ID = locationControl.getID(locationName);

        locationClothes.setLocationID(ID);
        locationClothesDB.selectTotal(locationClothes);
        return(locationClothes.getTotal());
    }
    public bool checkIfLocationHasClothes(string locationName)
    {
        locationControl   = new LocationControl();
        locationClothes   = new LocationClothes();
        locationClothesDB = new LocationClothesDB();
        int ID = locationControl.getID(locationName);

        locationClothes.setLocationID(ID);
        bool check = locationClothesDB.checkIfLocationHasClothes(locationClothes);

        return(check);
    }