Exemple #1
0
        static void Main(string[] args)
        {
            ICustomer customer = new CustomerEntity();

            customer.AddCustomer();
            Console.WriteLine("Hello World!");
        }
Exemple #2
0
        // POST: api/Customers
        public void Post(CustomerModel c)
        {
            CustomerModel UPV = new CustomerModel();
            CustomerModel cs  = UM.GetCustomerProfile(c.customerNumber);

            if (cs.customerNumber == 0)
            {
                UM.AddCustomer(c);
            }
            else
            {
                UM.UpdateCustAccount(c);
            }
        }