Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sync before a restart
  • Loading branch information
Jeremy Mill committed Dec 7, 2015
1 parent bb59370 commit 57708fb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions TeamDBAwesome/TeamDBAwesome/SqlService/MySqlService.cs
Expand Up @@ -305,6 +305,20 @@ namespace TeamDBAwesome.SqlService
}
}

public List<Invoice> getInvoices(int custId)
{
List<Invoice> invList = new List<Invoice>();
bool open = this.OpenConnection();
if(open == true)
{
string query = "SELECT invoice.invoiceid, invoice.customerid, invoice.invoicedate, invoice.billingaddress, invoice.billingcity, " +
"invoice.billingstate, invoice.billingcountry, invoice.billingpostalcode, invoice.total, invoice.payid"
}


return invList;
}

/// <summary>
/// adds a payment type to the database
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions TeamDBAwesome/TeamDBAwesome/TeamDBAwesome.csproj
Expand Up @@ -198,6 +198,7 @@
<Compile Include="Models\Customer.cs" />
<Compile Include="Models\CustomPlaylistId.cs" />
<Compile Include="Models\Genre.cs" />
<Compile Include="Models\Invoice.cs" />
<Compile Include="Models\Media.cs" />
<Compile Include="Models\Payment.cs" />
<Compile Include="Models\Playlist.cs" />
Expand Down

0 comments on commit 57708fb

Please sign in to comment.