Exemplo n.º 1
0
        public void AddItemToLocation(Location newLocation, Item newItem)
        {
            Location existingLocation = _locationDB.GetLocation(newLocation);

            if (existingLocation == null)
            {
                throw new Exception("Location does not exist");
            }
            else
            {
                _locationDB.AddItemToLocation(newLocation, newItem);
            }
        }