This commit is contained in:
2019-09-02 19:32:05 +02:00
parent e9eac2e94b
commit f29bd12757
14 changed files with 410 additions and 8 deletions

View File

@@ -168,6 +168,15 @@ namespace ReallifeGamemode.Server.Finance
Paychecks[user.Id] = paycheck;
ReleasePayDay(client, paycheck);
}
private static int GetRentalFees(Client client)
{
using (var dbContext = new DatabaseContext())
{
User user = client.GetUser();
return dbContext.HouseRentals.Where(h => h.UserId == user.Id).Include(h => h.House).Sum(h => h.House.RentalFee);
}
}
private static int GetRentalFees(Client client)
{