diff --git a/BlueWest.Api/Controllers/CountryController.cs b/BlueWest.Api/Controllers/CountryController.cs
index d096a8b..b122d01 100644
--- a/BlueWest.Api/Controllers/CountryController.cs
+++ b/BlueWest.Api/Controllers/CountryController.cs
@@ -14,13 +14,13 @@ namespace BlueWest.WebApi.Controllers
[Route("[controller]")]
public class CountryController : ControllerBase
{
- private readonly CountriesDbContext _dbContext;
+ private readonly CountryDbContext _dbContext;
///
/// Controller responsible for handling country data in the Country table
///
///
- public CountryController(CountriesDbContext dbContext)
+ public CountryController(CountryDbContext dbContext)
{
_dbContext = dbContext;
}
diff --git a/BlueWest.Api/Controllers/CurrencyController.cs b/BlueWest.Api/Controllers/CurrencyController.cs
index 39cb66e..f4ed915 100644
--- a/BlueWest.Api/Controllers/CurrencyController.cs
+++ b/BlueWest.Api/Controllers/CurrencyController.cs
@@ -15,9 +15,9 @@ namespace BlueWest.WebApi.Controllers
[Route("[controller]")]
public class CurrencyController : ControllerBase
{
- private readonly CountriesDbContext _dbContext;
+ private readonly CountryDbContext _dbContext;
- public CurrencyController(CountriesDbContext dbContext)
+ public CurrencyController(CountryDbContext dbContext)
{
_dbContext = dbContext;
}
diff --git a/BlueWest.Api/MySQL/CountriesDbContext.cs b/BlueWest.Api/MySQL/CountryDbContext.cs
similarity index 89%
rename from BlueWest.Api/MySQL/CountriesDbContext.cs
rename to BlueWest.Api/MySQL/CountryDbContext.cs
index 97c0a7d..f8a16b8 100644
--- a/BlueWest.Api/MySQL/CountriesDbContext.cs
+++ b/BlueWest.Api/MySQL/CountryDbContext.cs
@@ -7,7 +7,7 @@ namespace BlueWest.WebApi.MySQL;
///
/// Countries and Currencies
///
-public class CountriesDbContext : DbContext
+public class CountryDbContext : DbContext
{
public DbSet Countries { get; set; }
@@ -23,7 +23,7 @@ public class CountriesDbContext : DbContext
/// Options to be injected in the app
///
///
- public CountriesDbContext(DbContextOptions options) : base(options)
+ public CountryDbContext(DbContextOptions options) : base(options)
{
Database.EnsureCreated();
diff --git a/BlueWest.Api/Startup.cs b/BlueWest.Api/Startup.cs
index f47dbb8..0e514c8 100644
--- a/BlueWest.Api/Startup.cs
+++ b/BlueWest.Api/Startup.cs
@@ -88,7 +88,7 @@ namespace BlueWest.WebApi
services
- .AddDbContextPool(options => options.GetSqlSettings(Configuration))
+ .AddDbContextPool(options => options.GetSqlSettings(Configuration))
.AddDbContextPool(options => options.GetSqlSettings(Configuration))
.AddDbContextPool(options => options.GetSqlSettings(Configuration))
;