Hi everybody.
I have a little question to community. Does ASP.NET MVC allow to execute an action of another controller without RedirectToAction()
method and without creation of an instance of this controller?
Thanks in advance, Ivan.
Hi everybody.
I have a little question to community. Does ASP.NET MVC allow to execute an action of another controller without RedirectToAction()
method and without creation of an instance of this controller?
Thanks in advance, Ivan.
This is impossible. For an instance method to execute there must be an instance to execute in. Action methods are simply methods like all other methods, so you always need an instance to call the method.
Do you mean you wish to have a View which returns nothing. No view. No nadda?
If so, u can return a EmptyResult ViewResult class...
HTH.