Hello I want to return an anchor from Mvc Controller
Controller name= DefaultController;
public ActionResult MyAction(int id) { return Redi
To Expand on Squall's answer: Using string interpolation makes for cleaner code. It also works for actions on different controllers.
return Redirect($"{Url.RouteUrl(new { controller = "MyController", action = "Index" })}#anchor");