Beispiel #1
0
        public bool DeleteNonReferenceChatRoom()
        {
            List <ChatRoom> list = _chatRoomRepository.GetAllChatRoom();

            foreach (ChatRoom i in list)
            {
                _messageRepository.RemoveMessageByChatRoomId(i.Id);
                _chatRoomRepository.Delete(i);
            }
            return(true);
        }