Does Nop give you the ability to populate dropdown lists with country/state info?
I realize that I could query the tables dbo.Country
and dbo.StateProvince
but was hoping for an easier solution
Access Country/State lists from NopCommerce plugin
349 views Asked by stackoverfloweth At
1
You dont need to write your own code to read tables. It is already available as service. Just pass ICountryService and IStateProvinceService Interfaces into the constructor of your plugin's controller. AutoFac will take care of instantiating. those.
ICountryService gives all the CRUD Methods for Country table. IStateProvinceService gives all the CURD Methods for StateProvice table.