示例#1
0
        public async Task <PartialViewResult> Index2(string search)
        {
            var result = new List <items>();

            result = await GoogleAPIs.Results(search);

            return(PartialView(result.ToList()));
        }
示例#2
0
        // GET: Default
        public async Task <ActionResult> Index(string search)
        {
            if (search != null)
            {
                var result = new List <items>();
                result = await GoogleAPIs.Results(search);

                return(View(result.ToList()));
            }
            else
            {
                var result = new List <items>();
                result = await GoogleAPIs.Results();

                return(View(result.ToList()));
            }
        }