moved ValuesController to its own class, remove UsersController and SwipeDataController classes, pending sqlite implementation.

This commit is contained in:
chris.watts90@outlook.com 2017-01-30 22:34:25 +00:00
parent bc3c7a5e31
commit 3579f750cc
2 changed files with 13 additions and 15 deletions

View File

@ -75,35 +75,20 @@ namespace WindowsDataCenter
} }
} }
public class SwipeDataController : ApiController
{ {
[HttpPost]
//[Route("postSwipeData")]
public IHttpActionResult PostData([FromBody] CardData cData)
{ {
Console.WriteLine(cData.CardUId);
var respMsg = new HttpResponseMessage(HttpStatusCode.OK);
return ResponseMessage(respMsg);
} }
} }
public class ValuesController : ApiController
{ {
public IEnumerable<string> Get()
{ {
return new List<string> { "ASP.NET", "Docker", "Windows Containers" };
} }
} }
public class UsersController : ApiController
{ {
public IHttpActionResult GetUsers()
{ {
throw new NotImplementedException();
} }
} }
public class CardData
{ {
public string CardUId { get; set; }
} }
} }

View File

@ -0,0 +1,13 @@
using System.Collections.Generic;
using System.Web.Http;
namespace WindowsDataCenter
{
public class ValuesController : ApiController
{
public IEnumerable<string> Get()
{
return new List<string> { "ASP.NET", "Docker", "Windows Containers" };
}
}
}