public async Task <ApiResponse> Update(TextDto textDto) { try { return(new ApiResponse(Status200OK, "Updated text", await _textStore.Update(textDto))); } catch (InvalidDataException dataException) { return(new ApiResponse(Status400BadRequest, "Failed to update text")); } }