Exemple #1
0
        public AdminManagePodcastsViewModel GetPodcastList()
        {
            var viewModel = new AdminManagePodcastsViewModel
            {
                Items = _podcastRepository
                        .GetAllPodcasts()
                        .Select(i => new AdminManagePodcastItemViewModel
                {
                    Id    = i.Id,
                    Title = i.Title
                })
            };

            return(viewModel);
        }