public ActionResult Search(string phrase) { GameDao gameDao = new GameDao(); IList <Game> games = gameDao.SearchGames(phrase); if (Request.IsAjaxRequest()) { return(PartialView("IndexHrac", games)); } return(View("IndexHrac", games)); }
public ActionResult Search(string phrase) { GameDao gameDao = new GameDao(); IList <Game> games = gameDao.SearchGames(phrase); if (Request.IsAjaxRequest()) { return(PartialView("IndexHrac", games)); } return(View("IndexHrac", games)); }