eTutorTeam / eTutor.BackEnd

Represents the backend of the eTutor App
MIT License
0 stars 0 forks source link

Added ratings average to user responses #17

Closed juandozuna closed 4 years ago

AngelR24 commented 4 years ago

Por que retornas 5 en este caso? ` public decimal GetUserAvgRatings(int userId) { IOperationResult result = GetUserAvgRatingAsync(userId).Result;

        Task.WaitAll();

        if (!result.Success)
        {
            return 5;
        }

        return result.Entity;
    }`