diff --git a/Backend/Monolithic/ContosoMaintenance.WebAPI.csproj b/Backend/Monolithic/ContosoMaintenance.WebAPI.csproj index 5ba8f66..922b24d 100644 --- a/Backend/Monolithic/ContosoMaintenance.WebAPI.csproj +++ b/Backend/Monolithic/ContosoMaintenance.WebAPI.csproj @@ -46,4 +46,7 @@ + + + \ No newline at end of file diff --git a/Backend/Monolithic/Controllers/CustomerController.cs b/Backend/Monolithic/Controllers/CustomerController.cs deleted file mode 100644 index 6c360a6..0000000 --- a/Backend/Monolithic/Controllers/CustomerController.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using ContosoMaintenance.WebAPI.Models; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Configuration; - -namespace ContosoMaintenance.WebAPI.Controllers -{ - //[Route("/api/customer")] - //public class CustomerController : BaseController - //{ - // public CustomerController(IConfiguration configuration) : base(configuration) - // { - // } - //} -} diff --git a/Backend/Monolithic/Controllers/DummyController.cs b/Backend/Monolithic/Controllers/DummyController.cs index 3414aee..a0a6b93 100644 --- a/Backend/Monolithic/Controllers/DummyController.cs +++ b/Backend/Monolithic/Controllers/DummyController.cs @@ -14,15 +14,11 @@ namespace ContosoMaintenance.WebAPI.Controllers public class DummyController : Controller { DocumentDBRepositoryBase jobs = new DocumentDBRepositoryBase(); - DocumentDBRepositoryBase customers = new DocumentDBRepositoryBase(); - DocumentDBRepositoryBase employees = new DocumentDBRepositoryBase(); DocumentDBRepositoryBase parts = new DocumentDBRepositoryBase(); public DummyController(IConfiguration configuration) { jobs.Initialize(configuration["AzureCosmosDb:Endpoint"], configuration["AzureCosmosDb:Key"], configuration["AzureCosmosDb:DatabaseId"]); - customers.Initialize(configuration["AzureCosmosDb:Endpoint"], configuration["AzureCosmosDb:Key"], configuration["AzureCosmosDb:DatabaseId"]); - employees.Initialize(configuration["AzureCosmosDb:Endpoint"], configuration["AzureCosmosDb:Key"], configuration["AzureCosmosDb:DatabaseId"]); parts.Initialize(configuration["AzureCosmosDb:Endpoint"], configuration["AzureCosmosDb:Key"], configuration["AzureCosmosDb:DatabaseId"]); } @@ -38,12 +34,6 @@ namespace ContosoMaintenance.WebAPI.Controllers foreach (var item in container.Jobs) await jobs.CreateItemAsync(item); - foreach (var item in container.Customers) - await customers.CreateItemAsync(item); - - foreach (var item in container.Employees) - await employees.CreateItemAsync(item); - foreach (var item in container.Parts) await parts.CreateItemAsync(item);