public static void insertEmployer(EmployerBO objEmployer) { if (!objEmployer.Organization.Equals("")) { EmployerDAL.insertEmployer(objEmployer); } }
public static List <UserFriendsBO> getAllSuggestions(string UserId) { List <UserFriendsBO> list = FriendsDAL.getAllSuggestions(UserId); foreach (UserFriendsBO Useritem in list) { BasicInfoBO info = BasicInfoDAL.getBasicInfoByUserId(Useritem.FriendUserId); Useritem.Hometown = info.HomeTown; Useritem.Location = info.CurrentCity; EmployerBO emp = EmployerDAL.getEmployerByUserId(Useritem.FriendUserId); Useritem.Employer = emp.Organization; UniversityBO uni = UniversityDAL.getUniversityByUniversityId(Useritem.FriendUserId); Useritem.Education = uni.UniversityName; } return(list); }
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)); }
public static List <Employer> getEmployerTop5(string UserId) { return(EmployerDAL.getEmployerTop5(UserId)); }
public static EmployerBO getEmployerByUserId(string UserId) { return(EmployerDAL.getEmployerByUserId(UserId)); }
public static List <Employer> getAllEmployerList() { return(EmployerDAL.getAllEmployerList()); }
public static void updateEmployer(EmployerBO objEmployer) { EmployerDAL.updateEmployer(objEmployer); }
public static void deleteEmployer(string EmployerId) { EmployerDAL.deleteEmployer(EmployerId); }