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

            customer.AddCustomer();
            Console.WriteLine("Hello World!");
        }
示例#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);
            }
        }