Skip to content
Permalink
57d7765f5f
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
47 lines (34 sloc) 1.02 KB
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using TeamDBAwesome.Models;
using TeamDBAwesome.SqlService;
namespace TeamDBAwesome.Controllers
{
public class TestController : ApiController
{
// GET: api/Test
public HttpResponseMessage Get()
{
Payment test = new Payment
{
CustomerId = 7,
Type = "GP",
token = "54321",
email = "fuck@fuck.com",
is_default = 1
};
MySqlService sqlS = new MySqlService();
sqlS.AddPayment(test);
//Customer customer = sqlS.GetCustomer(3);
//return an OK with the int of the new user
HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
//response.Content = new StringContent(serialized);
return response;
}
}
}