Fred CleanUp Part 1

This commit is contained in:
ftorres 2020-04-30 19:12:39 -04:00
parent 9ae15ba456
commit aeb3723ce8
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ Change the AttachDbFile name to the full path of the BrainWare.mdf file (located
### Visual Studio
- Open solution BrainWare\BrainWare.sln
- Update the database connection string in file Web\Infrastructure\Database.cs
- Set the project Web, as the start up project
- Press F5
- Expected a browser is open with the result of the first order

View File

@ -29,7 +29,7 @@ namespace Web.Infrastructure
values.Add(new Order()
{
CompanyName = record1.GetString(0),
CompanyName = record1["name"].ToString(),
Description = record1.GetString(1),
OrderId = record1.GetInt32(2),
OrderProducts = new List<OrderProduct>()