using Common.Logic;
using Database;
using Database.Database;
using Microsoft.Extensions.Configuration;

namespace Common.Bonus;

public class PrizeHandler
{
    private static readonly log4net.ILog log = log4net.LogManager.GetLogger(typeof(PrizeHandler));

    // public static async Task ReRunPrize(
    //     IConfiguration configuration,
    //     ModelContext dbContext,
    //     PredictTerm predictTerm,
    //     PredictHistory predictHistory,
    //     PredictWinner predictWinner,
    //     Prize prize
    // )
    // {
    //     try
    //     {
    //         log.Info("Add prize " + prize.Id + " for history: " + predictHistory.Id);
    //         bool addData = await Connector.AddBonusToUser(
    //             configuration,
    //             dbContext,
    //             predictTerm,
    //             predictWinner,
    //             predictHistory.UserId,
    //             prize
    //         );
    //         log.Info("Add prize to predict winner: " + predictWinner.Id + " " + addData);
    //     }
    //     catch (Exception exception)
    //     {
    //         log.Error("Exception: ", exception);
    //     }
    // }
}
