Exemplo n.º 1
0
        public IActionResult AddShoppingItem(ShoppingListViewModel shoppingItemVM)
        {
            if (ModelState.IsValid)
            {
                shoppingItemRepository.AddShoppingItem(shoppingItemVM.NewItemName, shoppingItemVM.NewItemShop);
                ModelState.Clear();
            }

            return(List());
        }