Пример #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));
        }
Пример #2
0
        public async Task <IActionResult> SkillAttack(SkillAttackDto skillAttackDto)
        {
            var response = await _service.SkillAttack(skillAttackDto);

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

            return(Ok(response));
        }
Пример #3
0
 public async Task <IActionResult> SkillAttack(SkillAttackDto request)
 {
     return(Ok(await _fightService.SkillAttack(request)));
 }
Пример #4
0
 public async Task <ActionResult <ServiceResponse <AttackResultDto> > > SkillAttack(SkillAttackDto request)
 {
     return(Ok(await _fightService.SkillAttack(request)));
 }
Пример #5
0
 public async Task <IActionResult> SkillAttack(SkillAttackDto skillAttack) =>
 ActionResultHandler(await _fightService.SkillAttack(skillAttack));