public static UserFavoritesVm GetUserFavoriteVm(UserFavoritesDto userFavorites, long userId)
        {
            if (userFavorites == null)
            {
                return(null);
            }

            return(new UserFavoritesVm
            {
                Channel = ChannelConverter.GetChannelVm(userFavorites.Channel, userId),
                ChannelId = userFavorites.ChannelId,
                Chat = ChatConverter.GetChatVm(userFavorites.Chat),
                ChatId = userFavorites.ChatId,
                Contact = ContactConverter.GetContactVm(userFavorites.Contact),
                ContactId = userFavorites.ContactId,
                SerialNumber = userFavorites.SerialNumber
            });
        }
        public static UserFavoritesDto GetUserFavoriteDto(UserFavorite userFavorites)
        {
            if (userFavorites == null)
            {
                return(null);
            }

            return(new UserFavoritesDto
            {
                Channel = ChannelConverter.GetChannelDto(userFavorites.Channel),
                ChannelId = userFavorites.ChannelId,
                Chat = ChatConverter.GetChatDto(userFavorites.Chat),
                ChatId = userFavorites.ChatId,
                Contact = ContactConverter.GetContactDto(userFavorites.Contact),
                ContactId = userFavorites.ContactId,
                SerialNumber = userFavorites.SerialNumber,
                UserId = userFavorites.UserId
            });
        }