示例#1
0
        public async Task <IActionResult> Index()
        {
            ICollection <AlbumEntity> albums = await _albumsService.GetAllAsync();

            ICollection <PhotoEntity>    photos   = new List <PhotoEntity>();
            ICollection <CommentsEntity> comments = new List <CommentsEntity>();

            return(View(new GenericModelView {
                Albums = albums, Comments = comments, Photos = photos
            }));
        }