Пример #1
0
        public async Task <IActionResult> Index()
        {
            var shoppingList = await _shoppingListRepository.ListAsync();

            var dto = ShoppingListsViewModel.FromShoppingLists(shoppingList);

            return(View(dto));
        }
        public ShoppingListsPage()
        {
            InitializeComponent();

            BindingContext = _viewModel = new ShoppingListsViewModel();
        }