public ActionResult Index(int champId, string role) { try { var itemSetService = new ItemSetService(); var itemset = itemSetService.GetItemset("na", champId, role); if (itemset == null || itemset.Champion == null || itemset.EarlyItems.Count <= 2 || itemset.MidgameItems.Count < 2 || itemset.LategameItems.Count < 2) { return View("NotEnoughInfo"); } return View(itemset); } catch (Exception e) { return View("NotEnoughInfo"); } }