return redirecttoaction with parameter code example
Example 1: redirecttoaction with parameters
return RedirectToAction("Action", new { id = 99 });
Example 2: asp.net core redirecttoaction with parameters
RedirectToAction("Action", "Controller" ,new { id });
Example 3: redirecttoaction with query string parameters
return this.RedirectToAction
("myActionName", new { value1 = "queryStringValue1" });