Example #1
0
        public async Task HandleAsync(DeleteConversationCommand command)
        {
            var announcement = conversationsRepository.Get(command.ConversationId);

            announcement.Delete();
            await conversationsRepository.UpdateAsync(announcement);
        }
 public IEnumerable <ConversationModel> GetAllConversationsByUserId(long userId)
 {
     return(conversationsRepository.Get(x => x.UserOneID == userId || x.UserTwoID == userId, includeProperties: "ConversationReplies"));
 }