Skip to content

Commit

Permalink
starting get track
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Mill committed Nov 20, 2015
1 parent 0f924d8 commit 04d07b0
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
27 changes: 27 additions & 0 deletions TeamDBAwesome/TeamDBAwesome/Controllers/GetTrackController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using TeamDBAwesome.SqlService;

namespace TeamDBAwesome.Controllers
{
public class GetTrackController : ApiController
{
// GET: api/GetTrack
public HttpResponseMessage Get(int TrackID)
{
HttpResponseMessage message = new HttpResponseMessage(HttpStatusCode.OK);

MySqlService sql = new MySqlService();



return message;
}


}
}
18 changes: 18 additions & 0 deletions TeamDBAwesome/TeamDBAwesome/SqlService/MySqlService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,5 +325,23 @@ public SearchResult Search(Search search)
return searchresult;
}
}

public Track GetTrack(int trackId)
{
Track track = new Track();
bool open = this.OpenConnection();

if(open == true)
{
string query = "SELECT * from ";
}
else
{

}


return track;
}
}
}
1 change: 1 addition & 0 deletions TeamDBAwesome/TeamDBAwesome/TeamDBAwesome.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
<Compile Include="Areas\HelpPage\SampleGeneration\TextSample.cs" />
<Compile Include="Areas\HelpPage\XmlDocumentationProvider.cs" />
<Compile Include="Controllers\GetCustomerController.cs" />
<Compile Include="Controllers\GetTrackController.cs" />
<Compile Include="Controllers\HomeController.cs" />
<Compile Include="Controllers\NewCustomerController.cs" />
<Compile Include="Controllers\SearchController.cs" />
Expand Down

0 comments on commit 04d07b0

Please sign in to comment.