public void UnfriendUser(int friendMappingID) { var friendMapping = _UserRepo.RemoveFriendMapping(friendMappingID); if (friendMapping != null) { List <string> connectionIds = _UserRepo.GetUserConnectionID(new int[] { friendMapping.EndUserID, friendMapping.RequestorUserID }); RefreshOnlineUsersByConnectionIds(connectionIds); } }