Exemplo n.º 1
0
        public async Task <IActionResult> DeleteSquad(int id)
        {
            var squad = await _squadService.GetByIdAsync(id);

            if (squad == null)
            {
                return(NotFound());
            }

            await _squadService.DeleteAsync(squad);

            return(Ok(id));
        }