diff --git a/aspnetcore/includes/webApi/register_dbContext.md b/aspnetcore/includes/webApi/register_dbContext.md index 2e71df818a..05635c1fd8 100644 --- a/aspnetcore/includes/webApi/register_dbContext.md +++ b/aspnetcore/includes/webApi/register_dbContext.md @@ -1,6 +1,6 @@ ## Register the database context -n order to inject the database context into the controller, we need to register it with the [dependency injection](xref:fundamentals/dependency-injection) container. Register the database context with the service container using the built-in support for [dependency injection](xref:fundamentals/dependency-injection). Replace the contents of the *Startup.cs* file with the following: +In order to inject the database context into the controller, we need to register it with the [dependency injection](xref:fundamentals/dependency-injection) container. Register the database context with the service container using the built-in support for [dependency injection](xref:fundamentals/dependency-injection). Replace the contents of the *Startup.cs* file with the following: [!code-csharp[Main](../../tutorials/first-web-api/sample/TodoApi/Startup.cs?highlight=2,4,12)]