I am new comer for NopCommerce, my target is to save the data into the database when changing the customer information for this added column in customer table, also need to display the data on the page. So I added the code like below, how can I meet my target? thanks.
Below I dont have customer.groupowner = model.groupowner, but the data also cannot be saved to the database, that's why I added that, fyi.
_customerSettings.groupownerEnabled = true;
if (_customerSettings.groupownerEnabled)
{
await _genericAttributeService.SaveAttributeAsync(customer, NopCustomerDefaults.groupownerAttribute, model.groupowner);
customer.groupowner = model.groupowner;
}