moved ValuesController to its own class, remove UsersController and SwipeDataController classes, pending sqlite implementation.
This commit is contained in:
parent
bc3c7a5e31
commit
3579f750cc
@ -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; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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" };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user