Esempio n. 1
0
        public TimeSpan?HowLongDidLastChallengeTake(string userName)
        {
            var challenge = _statisticsRepo.GetLastSuccessfulChallenge(userName);

            if (challenge == null)
            {
                return(null);
            }

            return(challenge.UpdatedDate - challenge.CreatedDate);
        }