public async Task <IActionResult> SkillAttack(SkillAttackDto request) { ServiceResponse <AttackResultDto> response = await _fightService.SkillAttack(request); if (!response.Success) { return(BadRequest(response)); } return(Ok(response)); }
public async Task <IActionResult> SkillAttack(SkillAttackDto skillAttackDto) { var response = await _service.SkillAttack(skillAttackDto); if (!response.Success) { return(NotFound(response)); } return(Ok(response)); }
public async Task <IActionResult> SkillAttack(SkillAttackDto request) { return(Ok(await _fightService.SkillAttack(request))); }
public async Task <ActionResult <ServiceResponse <AttackResultDto> > > SkillAttack(SkillAttackDto request) { return(Ok(await _fightService.SkillAttack(request))); }
public async Task <IActionResult> SkillAttack(SkillAttackDto skillAttack) => ActionResultHandler(await _fightService.SkillAttack(skillAttack));