public ActionResult CrewMembers(Models.CrewListModel crew) { if (crew.Nome != null) { DataTable dt = new DataTable(); dt = CrewListModel.GetStoreProcSearch(crew.Nome); ViewData["TabelaTrip"] = dt; return(View()); } else { return(View()); } }
//***********************************************// //***************CREWMEMBERS*********************// //***********************************************// public IActionResult CrewMembers(string StartsWith) { if (HttpContext.Session.GetString("User") != null) { if (StartsWith != null) { DataTable dt = new DataTable(); dt = CrewListModel.GetStoreProcLetter(StartsWith); ViewData["TabelaTrip"] = dt; StartsWith = null; return(View()); } else { return(View()); } } else { return(RedirectToAction("Index")); } }