Example #1
0
        private void ProductCommands(string input)
        {
            if (input.Contains(Add))
            {
                _productView.AddProduct();
            }

            if (input.Contains(Update))
            {
                _productView.UpdateProduct();
            }

            if (input.Contains(Delete))
            {
                _productView.DeleteProduct();
            }

            if (input.Contains(One))
            {
                _productView.GetProduct();
            }

            if (input.Contains(All))
            {
                _productView.GetProducts();
            }

            if (input.Contains(Search))
            {
                _productView.SearchProducts();
            }

            if (input.Contains(AddPerson))
            {
                _productView.AddPerson();
            }

            if (input.Contains(RemovePerson))
            {
                _productView.RemovePerson();
            }
        }