Exemple #1
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);
            }
        }