public GetAchievementResponse GetAchievements(GetAchievementRequest request) { var user = UserRepository.RetrieveUser(request.SessionId); if (user == null) { return(new GetAchievementResponse { Success = false, ErrorMessage = "User not Found" }); } var currentAchievements = AchievementRepository.RetrieveUserAchievements(user.UserId); var outstandingAchievements = AchievementRepository.RetrieveOutstandingUserAchievements(user.UserId); return(new GetAchievementResponse { Success = true, UsersAchievements = MapOutAchievements(currentAchievements), RemainingAchievements = MapOutAchievements(outstandingAchievements) }); }