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