I have the following method:
public ActionResult exemplo()
That returns:
int act = (int)TasksTypeEnum.CARGA;
return RedirectToAction("Index", new { q = study.Id, msg = 1, action = act });
The index of the page receives:
public ActionResult Index(int q, int msg = 0, int action = 0)
but the last action parameter is reset! and the url ends up like this:
Ciclos?q=3886&msg=1
the value of this: int act = (int)TasksTypeEnum.CARGA;
is = 1
public enum TasksTypeEnum
{
CARGA = 1,
STATUS = 2,
SINISTRO = 3,
EMAIL = 4,
CONTATOTELEFONICO = 5
}
Why are you ignoring this last parameter?