private void AddObjectInstanceLinks(Microsoft.AspNetCore.Http.HttpRequest request, Model.ObjectDefinition objectDefinition, ObjectInstance instance, string instanceUrl) { instance.AddSelfLink(instanceUrl, true, true); instance.AddLink <ServiceModels.Subscriptions>(request, "subscriptions", string.Concat(instanceUrl, "/subscriptions")); string rootUrl = request.GetRootUrl(); instance.AddLink <ObjectDefinition>(Request, "definition", string.Concat(rootUrl, "/objecttypes/definitions/", StringUtils.GuidEncode(objectDefinition.ObjectDefinitionID))); }