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 EmployerBO getEmployerByUserId(string UserId) { return(EmployerDAL.getEmployerByUserId(UserId)); }