View code :
$.post('@Url.Action("SetPlayers", "Game")', { name : t });
Controller code :
public class GameController : Controller
{
[HttpPost]
public ActionResult SetPlayers(string name)
{
// some code...
return RedirectToAction("Some Action");
}
}
When i set stop point on the method SetPlayers, method recieved variable and all worked but doesn't redirect to action. How can i change it?