static void Main(string[] args) { ICustomer customer = new CustomerEntity(); customer.AddCustomer(); Console.WriteLine("Hello World!"); }
// 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); } }