Ejemplo n.º 1
0
        public void UpdateCustomer()
        {
            Console.Clear();
            int id = CheckIfCustomerExist();

            while (id < 1)
            {
                id = CheckIfCustomerExist();
            }

            if (customerController.FindCustomerById(id))
            {
                customerController.UpdateCustomer(Forms.CustomerForm(), id);
                Utility.SuccessMessage("Customer was updated successful");
            }
            else
            {
                Utility.ErrorMessage("Customer was not updated");
            }
        }