public ActionResult <HealthcareBC.Fabric.ContractTransaction> AssignHealthCarePlan(string citizenidentifier, HealthcareBC.Fabric.HealthcarePlan healthcareplan)
        {
            var transaction = _appService.AssignHealthcarePlan(healthcareplan, citizenidentifier).Result;

            return(transaction);
        }
        async public Task <HealthcareBC.Fabric.ContractTransaction> AssignHealthcarePlan(HealthcareBC.Fabric.HealthcarePlan healthcarePlan, string citizenIdentifier)
        {
            var         FabricEndpoint = ServiceEndPointResolver.GetServiceEndPoint(ServiceEndpoints.fabricEndPoint, null);
            FabricProxy FabricProxy    = new FabricProxy(FabricEndpoint, new HttpClient()
            {
                Timeout = new TimeSpan(0, 30, 0)
            });

            var transaction = await FabricProxy.AssignHealthcarePlanAsync(healthcarePlan, citizenIdentifier);

            //Indexing Service
            await LogTransaction(transaction, "Healthcare Plan was assigned and eligiility will be updated by Fabric logic after transaction");

            return(transaction);//await FabricProxy.AssignHealthcarePlanAsync(healthcarePlan, citizenIdentifier);
        }