asp.net core pass parameter from razor page code example
Example 1: asp.net core redirecttoaction with parameters
RedirectToAction("Action", "Controller" ,new { id });
Example 2: asp net mvc 5 return view from another controller
Return RedirectToRoute("Stuff");