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)); }
public async Task <IActionResult> AddWeapon(AddWeaponDto newWeapon) => Ok(await _weaponService.AddWeapon(newWeapon));
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))); }
public async Task <ActionResult <ServiceResponse <GetCharacterDto> > > AddWeapon(AddWeaponDto newWeapon) { return(Ok(await _weaponService.AddWeapon(newWeapon))); }
public async Task <IActionResult> AddWeapon(AddWeaponDto addWeaponDto) { return(Ok(await _weaponService.AddWeapon(addWeaponDto))); }