Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
change to holderservice
- Loading branch information
Jeremy Mill
committed
Dec 2, 2015
1 parent
4ecef37
commit fd752dc
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
TeamDBAwesome/TeamDBAwesome/Controllers/AddPaymentController.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,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Net.Http; | ||
using System.Web.Http; | ||
|
||
namespace TeamDBAwesome.Controllers | ||
{ | ||
public class AddPaymentController : ApiController | ||
{ | ||
// GET: api/AddPayment | ||
public IEnumerable<string> Get() | ||
{ | ||
return new string[] { "value1", "value2" }; | ||
} | ||
|
||
// GET: api/AddPayment/5 | ||
public string Get(int id) | ||
{ | ||
return "value"; | ||
} | ||
|
||
// POST: api/AddPayment | ||
public void Post([FromBody]string value) | ||
{ | ||
} | ||
|
||
// PUT: api/AddPayment/5 | ||
public void Put(int id, [FromBody]string value) | ||
{ | ||
} | ||
|
||
// DELETE: api/AddPayment/5 | ||
public void Delete(int id) | ||
{ | ||
} | ||
} | ||
} |
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,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Web; | ||
|
||
namespace TeamDBAwesome.Models | ||
{ | ||
public class Payment | ||
{ | ||
public int CustomerId { get; set; } | ||
public string Type { get; set; } | ||
public string token { get; set; } | ||
public string email { get; set; } | ||
public string cardnum { get; set; } | ||
// needs to be in yyyy-mm-dd format | ||
public string expr_date { get; set; } | ||
} | ||
} |
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
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