public ActionResult Index()
{
var tickets =
DependencyContainer.DomainController.ShowTickets();
if(tickets==null)
{
ViewData.Add("Error","Associate not found");
return RedirectToAction("Index", "Home");//Doesn't fire the index?
}
return View();
Home controller method is as follows and only fires on the debugger startup, and after the redirect IF I hit F5.
public ActionResult Index()
{
ViewData["Message"] = "Welcome to Home Loans and Insuring Technology Ticketing";
//if (TempData.ContainsKey(ErrorKey))
//{
// ViewData[ErrorKey] = TempData[ErrorKey];
// TempData.Remove(ErrorKey);
//}
return View();
}
Redirect doesn't fire the controller?