S
shapper
Hello,
I have the following:
return returnUrl == null ? RedirectToAction("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.RedirectToRouteResult'
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 ? RedirectToAction("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.RedirectToRouteResult'
and 'System.Web.Mvc.RedirectResult'
Is there a way to fix this without needing to use an IF?
Thanks,
Miguel