Hello,
I have the following:
return returnUrl == null ? RedirectToActio n("Index", "Home") : Redirect
(returnUrl);
I get an error:
Type of conditional expression cannot be determined because there is
no implicit conversion between 'System.Web.Mvc .RedirectToRout eResult'
and 'System.Web.Mvc .RedirectResult '
Is there a way to fix this without needing to use an IF?
Thanks,
Miguel
I have the following:
return returnUrl == null ? RedirectToActio n("Index", "Home") : Redirect
(returnUrl);
I get an error:
Type of conditional expression cannot be determined because there is
no implicit conversion between 'System.Web.Mvc .RedirectToRout eResult'
and 'System.Web.Mvc .RedirectResult '
Is there a way to fix this without needing to use an IF?
Thanks,
Miguel
Comment