Example #1
0
        public WargearModel(WargearDTO wargear)
        {
            WargearID       = wargear.WargearID;
            WargearName     = wargear.WargearName;
            AmmountTotal    = wargear.AmmountTotal;
            FactionBelongTo = new FactionModel(wargear.FactionBelongTo);
            List <WeaponCategoryModel> weaponCategories = new List <WeaponCategoryModel>();

            foreach (var VARIABLE in wargear.WeaponCategories)
            {
                weaponCategories.Add(new WeaponCategoryModel(VARIABLE));
            }
            WeaponCategories = weaponCategories;
        }
 public void CreateExtraWeaponCategroyWargear(WargearDTO wargearDto, WeaponCategoryDTO WeaponCategoryDto)
 {
     IwargearContext.CreateWargearFactionWeaponCategory(wargearDto.WargearName, wargearDto.FactionBelongTo, WeaponCategoryDto);
 }
 public void UpdateWargearWeaponCategory(WargearDTO wargear, WeaponCategoryDTO waCategoryDto)
 {
     wargearRepository.CreateExtraWeaponCategroyWargear(wargear, waCategoryDto);
 }