extnet / Ext.NET

35 stars 41 forks source link

DirectEvents' `actionName` misses a corresponding `controllerName` property. #1878

Open fabriciomurta opened 1 year ago

fabriciomurta commented 1 year ago

In issue #1842 the actionName= directive was first mentioned as a valid directive for direct events in Ext.NET 7.

In DirectMethodProvider.cs:GetControllerDirectMethods() (and related code), it is possible to specify the action name (actionName, but controllerName is always the current controller. There should be an additional property to specify the controller in cases dedicated or external controllers are desired, in a syntax similar to @Url.Action("ActionName", "ControllerName") commonly used in MVC Razor pages.