├── .github └── workflows │ └── main.yml ├── .gitignore ├── .vscode ├── launch.json └── tasks.json ├── CommandAPISolution.sln ├── azure-pipelines.yml ├── src └── CommandAPI │ ├── CommandAPI.csproj │ ├── Controllers │ └── CommandsController.cs │ ├── Data │ ├── CommandContext.cs │ ├── ICommandAPIRepo.cs │ ├── MockCommandAPIRepo.cs │ └── SqlCommandAPIRepo.cs │ ├── Dtos │ ├── CommandCreateDto.cs │ ├── CommandReadDto.cs │ └── CommandUpdateDto.cs │ ├── Migrations │ ├── 20200524224711_AddCommandsToDB.Designer.cs │ ├── 20200524224711_AddCommandsToDB.cs │ └── CommandContextModelSnapshot.cs │ ├── Models │ └── Command.cs │ ├── Profiles │ └── CommandsProfile.cs │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── Startup.cs │ ├── appsettings.Development.json │ └── appsettings.json └── test └── CommandAPI.Tests ├── CommandAPI.Tests.csproj ├── CommandTests.cs └── CommandsControllerTests.cs /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /CommandAPISolution.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/CommandAPISolution.sln -------------------------------------------------------------------------------- /azure-pipelines.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/azure-pipelines.yml -------------------------------------------------------------------------------- /src/CommandAPI/CommandAPI.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/CommandAPI.csproj -------------------------------------------------------------------------------- /src/CommandAPI/Controllers/CommandsController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Controllers/CommandsController.cs -------------------------------------------------------------------------------- /src/CommandAPI/Data/CommandContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Data/CommandContext.cs -------------------------------------------------------------------------------- /src/CommandAPI/Data/ICommandAPIRepo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Data/ICommandAPIRepo.cs -------------------------------------------------------------------------------- /src/CommandAPI/Data/MockCommandAPIRepo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Data/MockCommandAPIRepo.cs -------------------------------------------------------------------------------- /src/CommandAPI/Data/SqlCommandAPIRepo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Data/SqlCommandAPIRepo.cs -------------------------------------------------------------------------------- /src/CommandAPI/Dtos/CommandCreateDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Dtos/CommandCreateDto.cs -------------------------------------------------------------------------------- /src/CommandAPI/Dtos/CommandReadDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Dtos/CommandReadDto.cs -------------------------------------------------------------------------------- /src/CommandAPI/Dtos/CommandUpdateDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Dtos/CommandUpdateDto.cs -------------------------------------------------------------------------------- /src/CommandAPI/Migrations/20200524224711_AddCommandsToDB.Designer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Migrations/20200524224711_AddCommandsToDB.Designer.cs -------------------------------------------------------------------------------- /src/CommandAPI/Migrations/20200524224711_AddCommandsToDB.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Migrations/20200524224711_AddCommandsToDB.cs -------------------------------------------------------------------------------- /src/CommandAPI/Migrations/CommandContextModelSnapshot.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Migrations/CommandContextModelSnapshot.cs -------------------------------------------------------------------------------- /src/CommandAPI/Models/Command.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Models/Command.cs -------------------------------------------------------------------------------- /src/CommandAPI/Profiles/CommandsProfile.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Profiles/CommandsProfile.cs -------------------------------------------------------------------------------- /src/CommandAPI/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Program.cs -------------------------------------------------------------------------------- /src/CommandAPI/Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Properties/launchSettings.json -------------------------------------------------------------------------------- /src/CommandAPI/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/Startup.cs -------------------------------------------------------------------------------- /src/CommandAPI/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/appsettings.Development.json -------------------------------------------------------------------------------- /src/CommandAPI/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/src/CommandAPI/appsettings.json -------------------------------------------------------------------------------- /test/CommandAPI.Tests/CommandAPI.Tests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/test/CommandAPI.Tests/CommandAPI.Tests.csproj -------------------------------------------------------------------------------- /test/CommandAPI.Tests/CommandTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/test/CommandAPI.Tests/CommandTests.cs -------------------------------------------------------------------------------- /test/CommandAPI.Tests/CommandsControllerTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/Complete-ASP-NET-3-API-Tutorial-Book/HEAD/test/CommandAPI.Tests/CommandsControllerTests.cs --------------------------------------------------------------------------------