Exemplo n.º 1
0
    public bool AddItems(Inventory inventory, IList <Guid> itemsGuidList)
    {
        // create the right repo based on type of inventory.
        // defer it to the factory

        IInventoryRepo repo = _inventoryFactory.CreateInventoryRepo(inventory.GetType());

        return(repo.PerformInventory(itemsGuidList));
    }