public static AddContestPoints ( int userId, int points ) : bool | ||
userId | int | |
points | int | |
return | bool |
public static bool AddContestPoints(int userId, int points)
{
try
{
User user = UserDAO.GetUserFromUserId(userId);
user.ActivityScore.AddContestPoints(points);
UserDAO.UpdateUserProfile(user);
return true;
}
catch (Exception)
{
return false;
}
}