public async Task <ActionResult> AddWeapon(AddWeaponDTO weapon)
        {
            ServiceWrapper <GetCharacterDTO> response = await _weaponService.AddWeapon(weapon);

            if (response.Data == null)
            {
                return(NotFound(response));
            }
            return(Ok(response));
        }
        public async Task <IActionResult> AddWeapon(AddWeaponDto newWeapon)
        {
            var response = await _service.AddWeapon(newWeapon);

            if (!response.Success)
            {
                return(NotFound(response));
            }

            return(Ok(response));
        }
示例#3
0
 public async Task <IActionResult> AddWeapon(AddWeaponDto newWeapon) => Ok(await _weaponService.AddWeapon(newWeapon));
示例#4
0
 public async Task <ActionResult> AddWeapon(AddWeaponDto newWeapon)
 {
     return(Ok(await _weaponService.AddWeapon(newWeapon)));
 }
 public async Task <IActionResult> AddWeapon(AddWeaponDTO weaponDTO)
 {
     return(Ok(await _weaponService.AddWeapon(weaponDTO)));
 }
示例#6
0
 public async Task <ActionResult <ServiceResponse <GetCharacterDto> > > AddWeapon(AddWeaponDto newWeapon)
 {
     return(Ok(await _weaponService.AddWeapon(newWeapon)));
 }
示例#7
0
 public async Task <IActionResult> AddWeapon(AddWeaponDto addWeaponDto)
 {
     return(Ok(await _weaponService.AddWeapon(addWeaponDto)));
 }