-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added an API stub, changed customer data model, added angular holder …
…service
- Loading branch information
Jeremy Mill
committed
Nov 3, 2015
1 parent
eeb7b99
commit b1707c9
Showing
5 changed files
with
108 additions
and
15 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
TeamDBAwesome/TeamDBAwesome/Controllers/NewCustomerController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Net.Http; | ||
using System.Web.Http; | ||
using TeamDBAwesome.Models; | ||
|
||
namespace TeamDBAwesome.Controllers | ||
{ | ||
public class NewCustomerController : ApiController | ||
{ | ||
// GET api/NewCustomer/a JSON object rep of a customer | ||
public HttpResponseMessage Get(Customer customer) | ||
{ | ||
HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK); | ||
return response; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
app.service('HolderService', function () { | ||
|
||
//declare the type | ||
//don't change this without also changing the data model | ||
var Blank_Customer = { | ||
FName: null, | ||
LName: null, | ||
Address: null, | ||
City: null, | ||
State: null, | ||
Post: null, | ||
Country: null, | ||
Phone: null, | ||
Fax: null, | ||
Email: null, | ||
Company: null, | ||
SupportRepID: null, | ||
PersonID: null, | ||
CustomerID: null | ||
}; | ||
|
||
|
||
//create the accessor for it | ||
return { | ||
getBlankCustomer: function () { | ||
return Blank_Customer; | ||
} | ||
}; | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Customer: | ||
-Create account | ||
-NEED: first and Last name, addr, city, state, country, postal, phone, fax, email | ||
-OPT: company name | ||
-edit account | ||
-Search By: | ||
-track name | ||
-album name | ||
-artist name | ||
-composer name | ||
-genre name | ||
-media name | ||
-OR, combination of all | ||
-playlist: | ||
-create playlist | ||
-add track | ||
-remove track | ||
-create order | ||
-playlists (either type) | ||
-get order | ||
-playlists (either type) | ||
|
||
|
||
Employee: | ||
-New media | ||
-track name, album name, artist name, composer name, genre name, milliseconds, bytes, media type | ||
-modify protected playlists | ||
-add tracks | ||
-remove tracks | ||
-create new protected playlist | ||
-View Customer Data: | ||
-their demographics | ||
-their playlists | ||
-Orders: | ||
-view pending orders | ||
-approve or deny | ||
|
||
|
||
|
||
|
||
|