public static int calculateEmployersRecomendationScore(string userId, string friendsId) { ArrayList userEmployers = EmployerDAL.getEmployersByUserId(userId); ArrayList friendsEmployers = EmployerDAL.getEmployersByUserId(friendsId); int Score = 0; foreach (string userEmploy in userEmployers) { foreach (string friendsEmploy in friendsEmployers) { if (userEmploy.Equals(friendsEmploy)) { Score += 1 * Global.WEIGHT_WORKPLACE; } } } return(Score); }
public static ArrayList getEmployersByUserId(string Id) { return(EmployerDAL.getEmployersByUserId(Id)); }