Esempio n. 1
0
        private void Prepare(int?id)
        {
            Input = _magicService.GetForEdit(id);
            var schools = _magicService.GetAllSchools();

            Schools = _coreLogic.ToSelectableList(schools);
        }
Esempio n. 2
0
        private void Setup(MajorType major)
        {
            var url = HttpContext.Request.GetDisplayUrl();

            IsLocal   = url.Contains("localhost");
            RootPath  = url.Remove(url.IndexOf("shared"));
            Abilities = _abilityService.GetAll <AbilityDescriptionModel>(major).ToList();
            Races     = _raceService.GetAll(major).ToList();
            Branches  = _branchService.GetAllWithPerks(major);
            Traits    = _traitService.GetAll(major).ToList();
            Skills    = _skillService.GetAll(major).ToList();
            if (major != MajorType.Fantasy)
            {
                return;
            }

            MagicSchools = _magicService.GetAllSchools().ToList();
            Alchemy      = _alchemyService.GetSummary();
        }
Esempio n. 3
0
 public void OnGet()
 {
     Schools = _magicService.GetAllSchools();
 }
Esempio n. 4
0
 public void OnGet(int?id)
 {
     Filtered = id;
     Schools  = _magicService.GetAllSchools().ToList();
 }