44 lines
861 B
C#
44 lines
861 B
C#
using SteamWare;
|
|
using System.Web.Http;
|
|
|
|
namespace NKC_WF.Controllers
|
|
{
|
|
public class getMUCssRevController : ApiController
|
|
{
|
|
// GET api/<controller>
|
|
public int Get()
|
|
{
|
|
int answ = 0;
|
|
// recupero da REDIS!
|
|
string redKey = memLayer.ML.redHash("MachineUnload:01:CssRev");
|
|
// se vuoto scrivo 1...
|
|
if (!memLayer.ML.redKeyPresent(redKey))
|
|
{
|
|
memLayer.ML.setRCntI(redKey);
|
|
}
|
|
answ = memLayer.ML.getRCnt(redKey);
|
|
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)
|
|
{
|
|
}
|
|
}
|
|
} |