Пример #1
0
        public async Task <IActionResult> Ongoings()
        {
            var titles = await dbContext.Anime
                         .Where(a => a.Tag == tagTranslator.ToString(Tag.Ongoing))
                         .OrderByDescending(a => a.Raiting)
                         .ToListAsync();

            var model = new AnimeListViewModel().Initialize(titles, "Аниме онгоинги");

            return(View("List", model));
        }
Пример #2
0
 public void NewsToString()
 {
     Assert.Equal("news", translator.ToString(Tag.News));
 }