Ejemplo n.º 1
0
        public async Task <IActionResult> Update([FromRoute] Guid id, [FromBody] DispatchTaskResult dispatchTaskResult, CancellationToken ct)
        {
            var updatedDispatchTaskResult = await _DispatchTaskResultService.UpdateAsync(id, dispatchTaskResult, ct);

            return(Ok(updatedDispatchTaskResult));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Create([FromBody] DispatchTaskResult dispatchTaskResult, CancellationToken ct)
        {
            var createdDispatchTaskResult = await _DispatchTaskResultService.CreateAsync(dispatchTaskResult, ct);

            return(CreatedAtAction(nameof(this.Get), new { id = createdDispatchTaskResult.Id }, createdDispatchTaskResult));
        }