40 lines
797 B
C#
40 lines
797 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
|
|
namespace MP_API.Controllers
|
|
{
|
|
public class insEnabController : ApiController
|
|
{
|
|
// GET api/enabled
|
|
public IEnumerable<string> Get()
|
|
{
|
|
return new string[] { "1020: OK", "1021: NO" };
|
|
}
|
|
|
|
// GET api/enabled/5
|
|
public string Get(int id)
|
|
{
|
|
return id.ToString() + "???";
|
|
}
|
|
|
|
// POST api/enabled
|
|
public void Post([FromBody]string value)
|
|
{
|
|
}
|
|
|
|
// PUT api/enabled/5
|
|
public void Put(int id, [FromBody]string value)
|
|
{
|
|
}
|
|
|
|
// DELETE api/enabled/5
|
|
public void Delete(int id)
|
|
{
|
|
}
|
|
}
|
|
}
|