Exemplo n.º 1
0
        public ActionResult <SelectionDTO> MakeSelection([FromBody] IdsDTO dto)
        {
            var selection    = _selectionService.CreateSelection(dto.Ids);
            var selectionDTO = new SelectionDTO(selection.Id);

            return(CreatedAtAction(nameof(GetSelection), new { id = selection.Id }, selectionDTO));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> TrashGroups([FromBody] IdsDTO dto)
        {
            await _service.TrashGroupsAsync(dto.Ids);

            return(NoContent());
        }
Exemplo n.º 3
0
 public static Task PutLolMissionsV1Player([Parameter("ids", "body")] IdsDTO ids)
 => Sender.Request("put", $"/lol-missions/v1/player", ids);