public Playlist CreatePlaylistForOrganisation(string name, string description, string key, int maxVotesPerUser, bool active, string imageUrl, User createdBy, long organisationId)
{
if (maxVotesPerUser.Equals(null)){
maxVotesPerUser = -1;
}
Playlist playlist = new Playlist()
{
Name = name,
Description = description,
Key = key,
MaximumVotesPerUser = maxVotesPerUser,
Active = active,
ImageUrl = imageUrl,
CreatedById = createdBy.Id,
ChatComments = new List<Comment>(),
Comments = new List<Comment>(),
PlaylistTracks = new List<PlaylistTrack>()
};
return repo.CreatePlaylist(playlist, organisationId);
}