With an existing MVC based application, There is a Product view which has ViewModel as ProductViewModel, This ViewModel has all basic properties which Product can have like Product Name, Type, Price, etc....
With this Product Creation process on this view, Objective is to associate list of customers with Product (which is not mendatory).
To retrieve Customer list for the user to select those associated customers, Currently on a button click, there is ajax call (getCustomers) which requests controller action to get list & show it within a table along with checkbox, this html created on the fly in jQuery Ajax call,
With current implementation, Selected Ids are not getting populated in view model while making POST action of the Product View.
Objective is to get selected Customer Ids, along with Product details into ViewModel.
Is there any way to do so?