//Check Unread Notifications public void CheckUnreadNotifications(string id) { if (!id.Equals("undefined") && !string.IsNullOrEmpty(id)) { MemberAction objMember = new MemberAction(); string[] notifyIds = id.Split(','); for (int i = 0; i < notifyIds.Count(); i++) { if (notifyIds[i + 1] == "Comment") { objMember.UpdateMemberComments(new Guid(notifyIds[i])); } else if (notifyIds[i + 1] == "Flag") { objMember.UpdateMemberFlags(new Guid(notifyIds[i])); } else if (notifyIds[i + 1] == "Rating") { objMember.UpdateMemberLikes(new Guid(notifyIds[i])); } i++; } } }
//Check Unread Flags public void CheckUnreadFlags(string ids) { if (!ids.Equals("undefined") && !string.IsNullOrEmpty(ids)) { string[] strSplitArr = ids.Split(';'); MemberAction objMemberAction = new MemberAction(); if (strSplitArr.Length > 0) { for (int i = 0; i <= strSplitArr.Length - 1; i++) { if (!string.IsNullOrEmpty(strSplitArr[i].ToString())) objMemberAction.UpdateMemberFlags(new Guid(strSplitArr[i].ToString())); } } } }