Can't getting the reference of IProductModelFactory by plugin in nopcommerce 4.2

1 month ago
I am calling product controller from plugin and in that I am adding multiple class fields like ILocalizationService, IProductModelFactory, etc. to call their method. Now for multiple reference I am getting their namespace by clicking ctrl+. and add them but one of the reference I can't getting the namespace of IProductModelFactory in plugin.  It shows error like

It showing that The type or namespace name 'IProductModelFactory' could not be found
.
Suprised why this happening.

Please note that I am using nopcommerce 4.2.
1 month ago
Try
using IProductModelFactory = Nop.Web.Factories.IProductModelFactory;