Exemplo n.º 1
0
        private void Prepare(MajorType major, int?id)
        {
            Input = _branchService.GetForEdit(id);
            var bonuses = _bonusService.GetAll(major, (int)BonusType.Branch);

            Bonuses = _coreLogic.ToSelectableList(bonuses);
        }
Exemplo n.º 2
0
        private void Prepare(MajorType major, int?id)
        {
            Input = _weaponService.GetForEdit(id);
            var skills  = _skillService.SelectSkills(major, SkillType.Weapon);
            var bonuses = _bonusService.GetAll(major, (int)BonusType.Weapon);

            Skills  = _coreLogic.ToSelectableList(skills, Input.SkillId.ToString());
            Bonuses = _coreLogic.ToSelectableList(bonuses);
        }
Exemplo n.º 3
0
        private void Prepare(MajorType major, int?id)
        {
            Input = _raceService.GetForEdit(id);
            var abilities = _abilityService.GetAll <AbilityModel>(major);
            var bonuses   = _bonusService.GetAll(major, (int)BonusType.Race);

            Abilities = _coreLogic.ToSelectableList(abilities);
            Bonuses   = _coreLogic.ToSelectableList(bonuses);
        }
Exemplo n.º 4
0
        public PartialViewResult OnGetGrid(MajorType major)
        {
            var list = _bonusService.GetAll(major).OrderBy(x => x.Id);

            return(Partial(SitePages.MajorEditorBonuses_Grid, list));
        }