示例#1
0
        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);
        }
示例#2
0
 public static ArrayList getEmployersByUserId(string Id)
 {
     return(EmployerDAL.getEmployersByUserId(Id));
 }