public SongsListViewModel(IEventAggregator eventAggregator, ISongsService songsService) : base(eventAggregator) { Songs = new BindableCollection <ISong>(songsService.GetAllSongs()); }
// GET: SongController async Task<IActionResult> public async Task <IActionResult> IndexShowAllSongs() { IEnumerable <Song> songs = await _songsService.GetAllSongs(); return(View(songs.ToList())); }