Exemplo n.º 1
0
        public IActionResult Panel()
        {
            var model = new PanelViewModel()
            {
                Posts  = _postRepository.getAllPosts(),
                Animes = _animeRepository.GetAllAnimes(),
                Mangas = _mangaRepository.GetAllMangas(),
            };

            return(View(model));
        }
        public IActionResult Index()
        {
            var model = _animeRepository.GetAllAnimes();

            return(View(model));
        }