I have
- A dropdown w/ a list of salespeople
- A grid with customers (Contains ID of SalesPersonCustomer record)
I'd like to
Select a salesperson and a number of customers and on click of "Assign salesperson to customers"
-
Do a bulk upsert of the SalesPersonCustomer table (Has Auto incrementing Id, SalesPersonId, CustomerId)
-
If SalesPersonCustomerId != null, insert record to SalesPersonCustomerTable
-
Else, update SalesPersonCustomer record