34 lines
779 B
C#
34 lines
779 B
C#
using GameModel;
|
|
using GameModel.Contract;
|
|
using GameModel.Settings;
|
|
using Microsoft.Extensions.Logging;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GameData.Repository
|
|
{
|
|
public class ExpenseRepository : IExpenseRepository
|
|
{
|
|
readonly ILogger<ExpenseRepository> _log;
|
|
private ApiClient _client;
|
|
|
|
string Url => "items/expense";
|
|
|
|
public ExpenseRepository(ILogger<ExpenseRepository> log, ApiClient apiClient)
|
|
{
|
|
_log = log;
|
|
_client = apiClient;
|
|
|
|
_log?.LogWarning("TESTWARN");
|
|
}
|
|
|
|
public IEnumerable<Expense> GetAll()
|
|
{
|
|
return _client.Get<Expense>(Url);
|
|
}
|
|
}
|
|
}
|