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?
return View();
line. Additionally the message doesn't show up. I tried using TempData but the message did not show up until I hit F5/refresh. So the index wasn't firing by that process either. – Maslow Jan 15 '10 at 17:12