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)); }
public void NewsToString() { Assert.Equal("news", translator.ToString(Tag.News)); }