Ejemplo n.º 1
0
        private static void AddCareProvider(Default.Container container)
        {
            var cp1 = new testClient.Org.Naima.Services.Cases.Models.CareProvider()
            {
                Name       = "Ramlal",
                Id         = 1,
                LocationId = 1
            };
            var cp2 = new testClient.Org.Naima.Services.Cases.Models.CareProvider()
            {
                Name       = "Mohan",
                Id         = 2,
                LocationId = 2
            };

            container.AddToCareProviders(cp1);
            container.AddToCareProviders(cp2);
            var serviceResponse = container.SaveChanges();

            foreach (var operationResponse in serviceResponse)
            {
                Console.WriteLine("Response: {0}", operationResponse.StatusCode);
            }
        }