Esempio n. 1
0
        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));
        }
Esempio n. 3
0
 public async Task <IActionResult> SkillAttack(SkillAttackDto request)
 {
     return(Ok(await _fightService.SkillAttack(request)));
 }
Esempio n. 4
0
 public async Task <ActionResult <ServiceResponse <AttackResultDto> > > SkillAttack(SkillAttackDto request)
 {
     return(Ok(await _fightService.SkillAttack(request)));
 }
Esempio n. 5
0
 public async Task <IActionResult> SkillAttack(SkillAttackDto skillAttack) =>
 ActionResultHandler(await _fightService.SkillAttack(skillAttack));