forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathItemService.cs
More file actions
28 lines (24 loc) · 729 Bytes
/
Copy pathItemService.cs
File metadata and controls
28 lines (24 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System.Collections.Generic;
using System.Threading.Tasks;
using L2dotNET.DataContracts;
using L2dotNET.Repositories.Contracts;
using L2dotNET.Services.Contracts;
namespace L2dotNET.Services
{
public class ItemService : IItemService
{
private readonly IItemRepository _itemRepository;
public ItemService(IItemRepository itemRepository)
{
_itemRepository = itemRepository;
}
public async Task<IEnumerable<ItemContract>> RestoreInventory(int characterId)
{
return await _itemRepository.RestoreInventory(characterId);
}
public int GetMaxItemId()
{
return _itemRepository.GetMaxItemId();
}
}
}