0
I have the following method:
public ActionResult exemplo()
Returning:
int act = (int)TasksTypeEnum.CARGA;
return RedirectToAction("Index", new { q = study.Id, msg = 1, action = act });
The page index receives:
public ActionResult Index(int q, int msg = 0, int action = 0)
but the last action parameter comes zeroed ! 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 ?
Dude, I didn’t even touch that
– Jhonatan Jorge de Lima