KoogleV4/GameData/Repository/ExpenseRepository.cs

28 lines
547 B
C#

using GameModel;
using GameModel.Contract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GameData.Repository
{
public class ExpenseRepository : IExpenseRepository
{
private ApiClient _client;
string Url => "items/expense";
public ExpenseRepository()
{
_client = new ApiClient();
}
public IEnumerable<Expense> GetAll()
{
return _client.Get<Expense>(Url);
}
}
}