Ejemplo n.º 1
0
        public async Task <IActionResult> Weapon(WeaponDto weaponDto)
        {
            var weaponToCreate = new Weapon
            {
                Id        = weaponDto.Id,
                Name      = weaponDto.Name,
                Seria     = weaponDto.Seria,
                SoldierId = weaponDto.SoldierId
            };

            await _repo.Weapon(weaponToCreate);

            return(StatusCode(201));
        }