Esempio n. 1
0
 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());
     }
 }
Esempio n. 2
0
        //***********************************************//
        //***************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"));
            }
        }