Пример #1
0
 private ButtonViewModel CreatePaginationButton(
     string category, string type, int page, bool previous
     ) => _viewModelService.GetTranslatedButton(
     $"buttons.{(previous ? "previous" : "next")}-page",
     $"products/{category}/{type}/{page}",
     new Values {
     ["page"] = $"{page}"
 }
     );
Пример #2
0
 private IEnumerable <ButtonViewModel> CreateProductCardPageActions() => new[] {
     _viewModelService.GetTranslatedButton("buttons.main-menu", "menu")
 };