ActivEarth.DAO.TeamDAO.CalculateUserScore C# (CSharp) Метод

CalculateUserScore() приватный статический Метод

Calculates the user's change in the relevant statistic since the beginning of the contest; their 'score' for the contest.
private static CalculateUserScore ( int userId, float initial, Statistic statistic ) : float
userId int
initial float
statistic Statistic
Результат float
        private static float CalculateUserScore(int userId, float initial, Statistic statistic)
        {
            UserStatistic userStat = UserStatisticDAO.GetStatisticFromUserIdAndStatType(userId, statistic);
            float current = (userStat != null ? userStat.Value : 0);

            return current - initial;
        }