Finish the generic QueryDestOrigin() in C# web service and TypeScript.