Example #1
0
 public MenuViewModel Menu(ViewModelService viewModelService) => viewModelService.GetTranslatedMenuList(
     "headers.main-menu",
     ("buttons.categories", "categories"),
     ("buttons.cart", "cart"),
     ("buttons.order", "order"),
     ("buttons.feedback", "feedback")
     );
Example #2
0
        public object AcceptPhone()
        {
            _chatService.UpdateChatPhone(_chat, _routeValues.GetValue("phone"));
            _orderService.SaveOrder(_chat);
            _cartService.ClearCart(_chat);

            return(_viewModelService.GetTranslatedMenuList(
                       "headers.order-complete",
                       ("headers.main-menu", "menu")
                       ));
        }
Example #3
0
 private IBotViewModel CreateEmptyCartMenu() => _viewModelService.GetTranslatedMenuList(
     "headers.empty-cart",
     ("buttons.main-menu", "menu")
     );