// 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); } }
// 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); } }