コード例 #1
0
        public IEnumerable <MonitorModel> Get()
        {
            return(_monitor.GetData().AsQueryable());

            /*
             * var items= _db.Monitor.Select(s => new MonitorModel()
             * {
             *  ComputerName = s.ComputerName,
             *  MonitorId = s.MonitorId,
             *  Model = s.Model,
             *  SerialNumber = s.SerialNumber,
             *  LastUpdate = s.LastUpdate //!=null ? s.LastUpdate.ToString() : ""
             *
             * }).Take(10);
             #if DEBUG
             * foreach (var item in items)
             * {
             *  Debug.WriteLine(item.Model);
             * }
             #endif
             * return items;*/
        }