I have this method who call 2 others methods but i've an error when a execute that code.
public ActionResult CreateOrder(string action, string type)
{
/*Some Code*/
if(MyObject.isOk){
return RedirectToAction("EditOrder", new { code = ErrorCode, libelle = Description });
}else{
return RedirectToAction("EditOrder", new { nordre = NoOrdre });
}
}
public ActionResult EditOrder(string nordre)
{
}
[ActionName("EditOrder")]
public ActionResult EditOrderError(string code, string libelle)
{
}
But i get an 404 because the script try to find the "EditOrderError" view.