Beispiel #1
0
        public ActionResult SearchPR(string Search)
        {
            List <T_PR> listTic = new List <T_PR>();
            QueryCRUD   qr      = new QueryCRUD();

            listTic = qr.SearchT_PR(Search);

            if (Search == "")
            {
                ViewBag.PR = "Search";

                listTic = qr.GetT_PR();

                return(View("ShowPR", listTic));
            }



            ViewBag.PR = Search;
            return(View("ShowPR", listTic));
        }
        public ActionResult SearchPR(string Search)
        {
            if (Search == "")
            {
                ViewBag.PR = "Search";
                dynamic     listTicPR = new ExpandoObject();
                QueryCRUD   qr        = new QueryCRUD();
                List <T_PR> listTic   = qr.GetT_PR();
                listTicPR.T_Pr  = listTic;
                listTicPR.T_Job = qr.listjobPR();
                return(View("ShowPR", listTicPR));
            }
            else
            {
                dynamic     listTicPR = new ExpandoObject();
                QueryCRUD   qr        = new QueryCRUD();
                List <T_PR> listTic   = qr.SearchT_PR(Search);
                listTicPR.T_Pr  = listTic;
                listTicPR.T_Job = qr.listjobPR();


                return(View("ShowPR", listTicPR));
            }
        }