private async Task StartChoosingSongsAsync(int id) { //var playlist = await _logic.GetPlayListMainAsync(id); await _logic.SetMainPlaylistAsync(id); //so it gets set in whoever is responsible for handling this part. var model = new PlayListSongBuilderEventModel(); await Aggregator !.PublishAsync(model); }
async Task IHandleAsync <PlayListSongBuilderEventModel> .HandleAsync(PlayListSongBuilderEventModel message) { //this means i have to register 2 more view models. //this could be a good time to autoregister. i already do for the views. //might as well for the view models as well. view models has to always be instance. //has to decide whether i do or not (could be an option to autoregister as well). var model = cons !.Resolve <PlaylistSongBuilderViewModel>(); await LoadScreenAsync(model); }