Exemple #1
0
        public ActionResult Index(string keyword, string name)
        {
            if (!string.IsNullOrEmpty(keyword))
            {
                if (!string.IsNullOrEmpty(keyword + name))
                {
                    System.Diagnostics.Debug.WriteLine(name);
                    return(View(repo客戶資料.NamenClassification(keyword, name)));
                }
                else
                {
                    System.Diagnostics.Debug.WriteLine(keyword);
                    return(View(repo客戶資料.Classification(keyword)));
                }
            }


            return(View(repo客戶資料.All().ToList()));
        }