public async Task <IActionResult> UpdateTable(string id, UpdateTodoTaskTableDto todoTask) { var table = await tableService.GetByIdAsync(todoTask.TableId); var task = await todoTaskService.GetByIdAsync(id); if (table == null || task == null) { return(this.NotFound()); } var response = await todoTaskService.UpdateTableAsync(id, todoTask.TableId); return(response ? this.NoContent() : this.UnprocessableEntity() as IActionResult); }