Commit
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user