public async Task <String> Put([FromBody] Diagram diagram)
        {
            IStatefulDiagramApi info = ServiceProxy.Create <IStatefulDiagramApi>(
                new Uri(uriString: "fabric:/DiagramApp/DiagramApi"),
                new ServicePartitionKey(0));
            String response = await info.updateDiagram(diagram.GUID, diagram.DiagramJson);

            return(response);
        }
        public async Task <String> GetDiagramInfo(String diagramId, String tenantName)
        {
            IStatefulDiagramApi diagram = ServiceProxy.Create <IStatefulDiagramApi>(
                new Uri(uriString: "fabric:/DiagramApp/DiagramApi"),
                new ServicePartitionKey(0));

            String response = await diagram.getDiagramProperties(diagramId);

            return(response);
        }
        public async Task <String> CreateOrInsertDiagramJson([FromBody] InputData diagramData)
        {
            IStatefulDiagramApi info = ServiceProxy.Create <IStatefulDiagramApi>(
                new Uri(uriString: "fabric:/DiagramApp/DiagramApi"),
                new ServicePartitionKey(0));

            String output = await info.GetFromDatabaseWithTenantId(diagramData.data, diagramData.tenantName);

            return(output);
        }
        public async Task <String> UpdateAreaDiagramJson([FromBody] InputData diagramData)
        {
            IStatefulDiagramApi info = ServiceProxy.Create <IStatefulDiagramApi>(
                new Uri(uriString: "fabric:/DiagramApp/DiagramApi"),
                new ServicePartitionKey(0));

            String response = await info.updateAreaDiagramJson(diagramData.data, diagramData.tenantName);

            return(response);
        }
        public async Task <String> GetTenantId(String tenantName)
        {
            IStatefulDiagramApi info = ServiceProxy.Create <IStatefulDiagramApi>(
                new Uri(uriString: "fabric:/DiagramApp/DiagramApi"),
                new ServicePartitionKey(0));


            String output = await info.GetTenantId(tenantName);

            return(output);
        }