public IEnumerable <MyChallengeDto> GetChallengesOfUser(string id) { var challenges = _unitOfWork.ChallengeRepository.All().Where(c => c.User_ID == id && c.Archived == false); var userChallenges = challenges.ToMyDtos(); foreach (MyChallengeDto challenge in userChallenges) { challenge.Acceptance = _objectiveService.CountForChallenge(challenge.Id); } return(userChallenges); }