示例#1
0
        public ActionResult Index(string searchString /*, bool searchresult*/)
        {
            var championships = _championshipService.List();

            if (!String.IsNullOrEmpty(searchString))
            {
                championships = _championshipService.FindByBoxerName(searchString).ToList();
            }
            //if (searchresult == true)
            //{
            //    championships = _championshipService.GetResult(searchresult).ToList();
            //}
            return(View(championships));
        }