I have a situation where i need return a JSONResult or a Redirect. Is it possible?
Example:
public ActionResult Example(string code)
{
if(string.IsNullorEmpty(code))
return RedirectToAction("Index", "Home");
else
return Json(new { success = true, message= "Next step"});
}