示例#1
0
        public async Task <IActionResult> CreateNewWeapon(CreateWeaponDto newWeaponDto)
        {
            ServiceResponse <GetWeaponDto> response = await _weaponService.CreateNewWeapon(newWeaponDto);

            if (!response.Success)
            {
                return(BadRequest(response));
            }
            return(Ok(response));
        }