Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
| 123456789101112131415161718192021222324 |
- namespace Diligent.WebAPI.Host.Controllers.V1
- {
- [ApiVersion("1.0")]
- [Route("v{version:apiVersion}/selectionlevels")]
- [ApiController]
- public class SelectionLevelsController : ControllerBase
- {
- private readonly ISelectionLevelService _selectionLevelService;
-
- public SelectionLevelsController(ISelectionLevelService selectionLevelService)
- {
- _selectionLevelService = selectionLevelService;
- }
- [Authorize]
- [HttpGet]
- public async Task<IActionResult> GetAll() =>
- Ok(await _selectionLevelService.GetAllAsync());
-
- [Authorize]
- [HttpGet("{id}")]
- public async Task<IActionResult> GetById([FromRoute] int id) =>
- Ok(await _selectionLevelService.GetByIdAsync(id));
- }
- }
|