public async STT.Task <IActionResult> Move([FromRoute] Guid id, [FromBody] NewLocation newLocation, CancellationToken ct) { var taskWithSubtasks = await _TaskService.MoveAsync(id, newLocation.Id, newLocation.LocationType, ct); return(Ok(taskWithSubtasks)); }
public async STT.Task <IActionResult> CreateFromResult([FromRoute] Guid resultId, [FromBody] NewLocation newLocation, CancellationToken ct) { var task = await _TaskService.CreateFromResultAsync(resultId, newLocation.Id, newLocation.LocationType, ct); return(Ok(task)); }