Exemplo n.º 1
0
        [OutputCacheAttribute(VaryByParam = "*", Duration = 0, NoStore = true)] // will be applied to all actions in MyController, unless those actions override with their own decoration
        public ActionResult Search(string Search)
        {
            Response.Cache.SetNoStore();
            Response.Cache.AppendCacheExtension("no-cache");
            if (Search == null)
            {
                return(HttpNotFound("These are not the drones your looking for "));
            }
            var comicBooks = _comicbookRepo.GetComicSearch(Search);

            //Console.WriteLine("FUlly responsive ");
            // System.Diagnostics.Debug.WriteLine("SomeText");

            System.Diagnostics.Debug.WriteLine("This is your search" + Search);

            ViewBag.Search = Search;
            // Not the at comicBooks si the model expected
            return(View("Search", comicBooks));
        }