Esempio n. 1
0
        // GET: DossierFclExports
        public ActionResult Index(string searchString)
        {
            var dossierFclExports = db.DossierFclExports.Include(d => d.Client).Include(d => d.InstruTransporteurs).Include(d => d.Bookings);

            if (!String.IsNullOrEmpty(searchString))
            {
                DossierFclManager jinzo = new DossierFclManager();
                //dossierFclExports = db.DossierFclExports.Where(i => i.FCL_ID.Contains(searchString));
                List <DossierFclExport> lstdoss = jinzo.searchDossById(searchString);
                return(View(lstdoss));
            }

            return(View(dossierFclExports));
        }
        // GET: DossierFclExports
        public ActionResult Index(string searchString)
        {
            var dossierFclExports = db.DossierFclExports.Include(d => d.Client).Include(d => d.InstruTransporteurs).Include(d => d.Bookings);

            //si la saerchstring envoyé en GET via la barre de recherche de dossier et non null ou non vide alors :
            if (!String.IsNullOrEmpty(searchString))
            {
                DossierFclManager jinzo = new DossierFclManager();
                //dossierFclExports = db.DossierFclExports.Where(i => i.FCL_ID.Contains(searchString));
                List <DossierFclExport> lstdoss = jinzo.searchDossById(searchString);
                return(View(lstdoss));
            }

            return(View(dossierFclExports));
        }