//Submit Application public ActionResult submit(int id) { var dealer = _dealerAppService.GetDealer(id); if (dealer != null) { dealer.IsSubmitted = true; _dealerAppService.UpdateDealer(dealer); TempData["success"] = string.Format(@"Your Application has been successfully received!"); return(RedirectToAction("Index", "Dashboard")); } else { TempData["danger"] = string.Format(@"We failed to recognize the application made!"); return(RedirectToAction("AddActivities", new { Id = dealer.Id })); } }