// GET: DS3/Planner
 public ActionResult Index()
 {
     ViewBag.Weapons             = _weaponsHelper.GetWeapons();
     ViewBag.ReinforcementLevels = _statsHelper.GetReinforcementLevels();
     ViewBag.Helms           = _armorHelper.GetArmor(armorTypeId: (int)ArmorType.Types.Helm);
     ViewBag.Chests          = _armorHelper.GetArmor(armorTypeId: (int)ArmorType.Types.Chest);
     ViewBag.Gauntlets       = _armorHelper.GetArmor(armorTypeId: (int)ArmorType.Types.Gauntlet);
     ViewBag.Leggings        = _armorHelper.GetArmor(armorTypeId: (int)ArmorType.Types.Legging);
     ViewBag.StartingClasses = _statsHelper.GetStartingClasses();
     ViewBag.InfusionTypes   = _weaponsHelper.GetInfusionTypes();
     ViewBag.Rings           = new List <SelectListItem>();
     return(View());
 }
 // GET: Planner
 public ActionResult Index()
 {
     ViewBag.Vit         = 9;
     ViewBag.ADP         = 10;
     ViewBag.END         = 10;
     ViewBag.WeaponTypes = _weaponsHelper.GetWeaponTypes();
     ViewBag.Weapons     = _weaponsHelper.GetWeapons();
     ViewBag.Helms       = _armorHelper.GetArmor(armorTypeId: (int)DS2ArmorType.Types.Helm);
     ViewBag.Chests      = _armorHelper.GetArmor(armorTypeId: (int)DS2ArmorType.Types.Chest);
     ViewBag.Gauntlets   = _armorHelper.GetArmor(armorTypeId: (int)DS2ArmorType.Types.Gauntlet);
     ViewBag.Leggings    = _armorHelper.GetArmor(armorTypeId: (int)DS2ArmorType.Types.Legging);
     ViewBag.Rings       = _ringsHelper.GetRings();
     return(View());
 }
Exemple #3
0
        public JsonResult ArmorAutocomplete(string term)
        {
            term = term.ToLower();
            var armor = _armorHelper.GetArmor().Where(w => w.Text.ToLower().Contains(term));

            return(Json(armor, JsonRequestBehavior.AllowGet));
        }