From 3579f750cc04c36f36b722c0600cdaa47502c749 Mon Sep 17 00:00:00 2001 From: "chris.watts90@outlook.com" Date: Mon, 30 Jan 2017 22:34:25 +0000 Subject: [PATCH] moved ValuesController to its own class, remove UsersController and SwipeDataController classes, pending sqlite implementation. --- .../WindowsDataCenter/Service1.cs | 15 --------------- .../WindowsDataCenter/ValuesController.cs | 13 +++++++++++++ 2 files changed, 13 insertions(+), 15 deletions(-) create mode 100644 DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/ValuesController.cs diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Service1.cs b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Service1.cs index 86c7607..c8b91bd 100644 --- a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Service1.cs +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Service1.cs @@ -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 Get() { - return new List { "ASP.NET", "Docker", "Windows Containers" }; } } - public class UsersController : ApiController { - public IHttpActionResult GetUsers() { - throw new NotImplementedException(); } } - public class CardData { - public string CardUId { get; set; } } } diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/ValuesController.cs b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/ValuesController.cs new file mode 100644 index 0000000..63e4020 --- /dev/null +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/ValuesController.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; +using System.Web.Http; + +namespace WindowsDataCenter +{ + public class ValuesController : ApiController + { + public IEnumerable Get() + { + return new List { "ASP.NET", "Docker", "Windows Containers" }; + } + } +} \ No newline at end of file