It seems Andrey M. and team are very lazy to make a complete documentation. I am not able to override view (with another model passed to it - an extended one) for a week. I need to do this in plugin and use my own theme for that.
I was able to do it, but its not a ideal way still works. I created same partialview structure using same model, from that view i added jquery to call controller action which returns new view with my extended model. It still needs testing, but may be its useful for someone.
After write above code you have to regiser viewLocationExpander in dbstartup file by below code
/// <summary> /// Add and configure any of the middleware /// </summary> /// <param name="services">Collection of service descriptors</param> /// <param name="configuration">Configuration of the application</param> publicvoid ConfigureServices(IServiceCollection services, IConfiguration configuration) { /// <summary> /// Represents objectfor the configuring plugin DB context on application startup /// </summary> services.Configure<RazorViewEngineOptions>(options => { options.ViewLocationExpanders.Add(new ViewLocationExpander ()); });