using Bookie.Application.DTOs.Teams; using Bookie.Application.Interfaces; using Microsoft.AspNetCore.Mvc; namespace Bookie.Api.Controllers; [Route("api/teams")] public class TeamsController : CrudControllerBase { private readonly ITeamService _teams; public TeamsController(ITeamService service) : base(service) => _teams = service; /// Unpaged list of all teams (for dropdowns). [HttpGet("all")] public async Task>> GetAll(CancellationToken ct) => Ok(await _teams.GetAllAsync(ct)); }