Skip to content

Commit bea4529

Browse files
committed
small fix
1 parent d875301 commit bea4529

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed
0 Bytes
Binary file not shown.

Website/Controllers/PersonController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ namespace Website.Controllers
1414
{
1515
public class PersonController : Controller
1616
{
17-
private PersonHelper _queryDB;
17+
private PersonService _queryDB;
1818

1919
public PersonController()
2020
{
21-
_queryDB = new PersonHelper();
21+
_queryDB = new PersonService();
2222
}
2323

2424
public ActionResult PersonList()

Website/DemoDB.db

0 Bytes
Binary file not shown.

Website/DB_Helpers/PersonHelper.cs renamed to Website/Services/PersonService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
namespace Website.Helpers
1010
{
11-
public sealed class PersonHelper
11+
public sealed class PersonService
1212
{
1313
private SQLiteConnection _sql;
1414
private SQLiteCommand _sqlCommand;
1515
private SQLiteDataReader _sqlReader;
1616
private string _path;
1717

18-
public PersonHelper()
18+
public PersonService()
1919
{
2020
_path = ConfigurationManager.ConnectionStrings["DefaultDB"].ConnectionString;
2121
_sql = new SQLiteConnection(_path);

Website/Website.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<Compile Include="Global.asax.cs">
135135
<DependentUpon>Global.asax</DependentUpon>
136136
</Compile>
137-
<Compile Include="DB_Helpers\PersonHelper.cs" />
137+
<Compile Include="Services\PersonService.cs" />
138138
<Compile Include="Models\Person.cs" />
139139
<Compile Include="Properties\AssemblyInfo.cs" />
140140
</ItemGroup>

Website/bin/DemoDB.db

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)