private void Prepare(MajorType major, int?id) { Input = _branchService.GetForEdit(id); var bonuses = _bonusService.GetAll(major, (int)BonusType.Branch); Bonuses = _coreLogic.ToSelectableList(bonuses); }
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); }
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); }
public PartialViewResult OnGetGrid(MajorType major) { var list = _bonusService.GetAll(major).OrderBy(x => x.Id); return(Partial(SitePages.MajorEditorBonuses_Grid, list)); }