ultimate report system

This commit is contained in:
2019-09-02 20:46:05 +02:00
parent f29bd12757
commit 6dc9e5961c
7 changed files with 90 additions and 51 deletions

View File

@@ -178,15 +178,6 @@ namespace ReallifeGamemode.Server.Finance
}
}
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);
}
}
public static void ReleasePayDay(Client client, Paycheck paycheck)
{
using (var dbContext = new DatabaseContext())