Is there a way of using RedirectToAction where getting "Object reference not set to an instance of an object." error?
public ActionResult Details()
{
if(NullReferenceException == TRUE)
{
return RedirectToAction("Create");
}
else
{
return View("Details");
}
}
I need only a hint not a working solution. Thanks for any help.