Esempio n. 1
0
        // GET api/values/5
        public IHttpActionResult Get(int id)
        {
            BLL.BLLMonitorItem bllmonitoritem = new BLL.BLLMonitorItem();

            return(Ok(bllmonitoritem.getMonitorItem(id)));
        }
Esempio n. 2
0
        // GET api/values
        //public IEnumerable<string> Get()
        //{
        //    return new string[] { "value1", "value2" };
        //}

        public IHttpActionResult Get()
        {
            BLL.BLLMonitorItem bllmonitoritem = new BLL.BLLMonitorItem();

            return(Ok(bllmonitoritem.getAllMonitorItems()));
        }