using SteamWare; using System.Web.Http; namespace NKC_WF.Controllers { public class getMUCssRevController : ApiController { // GET api/ 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//5 public string Get(int id) { return "value"; } // POST api/ public void Post([FromBody]string value) { } // PUT api//5 public void Put(int id, [FromBody]string value) { } // DELETE api//5 public void Delete(int id) { } } }