public string FriendRequestSentNotifications() { string notification = ""; NewsfeedDAL newsFeedDAL = new NewsfeedDAL(); NotificationDAL notificationDAL = new NotificationDAL(); List <Notification> NotificationsList = new List <Notification>(); NotificationsList = notificationDAL.GetFriendRequestSentNotificationsForAMember(aMember); for (int i = 0; i < NotificationsList.Count; ++i) { #region FriendRequestSent //memberlist List <Member> MemberList = new List <Member>(); Member aFriend = new Member(NotificationsList[i].MemberId); MemberList = notificationDAL.GetMemberDisplayName(aFriend); string FriendDisplayName = MemberList[0].DisplayName; notification += FriendDisplayName + " sent you a friend request\n\n"; #endregion } return(notification); }
public int CountFriendRequestSentNotifications() { NewsfeedDAL newsFeedDAL = new NewsfeedDAL(); NotificationDAL notificationDAL = new NotificationDAL(); List <Notification> NotificationsList = new List <Notification>(); NotificationsList = notificationDAL.GetFriendRequestSentNotificationsForAMember(aMember); return(NotificationsList.Count); }
public string FriendRequestSentNotifications() { string notification = ""; NewsfeedDAL newsFeedDAL = new NewsfeedDAL(); NotificationDAL notificationDAL = new NotificationDAL(); List<Notification> NotificationsList = new List<Notification>(); NotificationsList = notificationDAL.GetFriendRequestSentNotificationsForAMember(aMember); for (int i = 0; i < NotificationsList.Count; ++i) { #region FriendRequestSent //memberlist List<Member> MemberList = new List<Member>(); Member aFriend = new Member(NotificationsList[i].MemberId); MemberList = notificationDAL.GetMemberDisplayName(aFriend); string FriendDisplayName = MemberList[0].DisplayName; notification += FriendDisplayName + " sent you a friend request\n\n"; #endregion } return notification; }
public int CountFriendRequestSentNotifications() { NewsfeedDAL newsFeedDAL = new NewsfeedDAL(); NotificationDAL notificationDAL = new NotificationDAL(); List<Notification> NotificationsList = new List<Notification>(); NotificationsList = notificationDAL.GetFriendRequestSentNotificationsForAMember(aMember); return NotificationsList.Count; }