Controller actions are publicly visible HTTP endpoints. If you have two actions which need to do the same things, then what you need is either a set of nonpublic controller methods or a set of services.
Could you explain more about the services solution?
user1043000
user1043000
why dont you just create an instance of that controller object and call the method? This is a simple OOP solution and doesnt require you to do any redirecting...
|
6
As @Justice says you can use RedirectToAction. Also, you can use TempData to pass model (and other) data between controller actions.