38 lines
662 B
C#
38 lines
662 B
C#
using System;
|
|
using System.Web.Http;
|
|
|
|
namespace NKC_WF.Controllers
|
|
{
|
|
public class getMUCssRevController : ApiController
|
|
{
|
|
// GET api/<controller>
|
|
public int Get()
|
|
{
|
|
// cambio ogni 3 secondi...
|
|
int answ = 0;
|
|
answ = (DateTime.Now.Second / 5);
|
|
return answ;
|
|
}
|
|
|
|
// GET api/<controller>/5
|
|
public string Get(int id)
|
|
{
|
|
return "value";
|
|
}
|
|
|
|
// POST api/<controller>
|
|
public void Post([FromBody]string value)
|
|
{
|
|
}
|
|
|
|
// PUT api/<controller>/5
|
|
public void Put(int id, [FromBody]string value)
|
|
{
|
|
}
|
|
|
|
// DELETE api/<controller>/5
|
|
public void Delete(int id)
|
|
{
|
|
}
|
|
}
|
|
} |