Exemplo n.º 1
0
        public ActionResult GetDevices()
        {
            var res = _deviceAPI.GetAllDomain();

            ViewBag.list = res.Select(_ => _.ConvertToAPI()).ToList();
            return(View());
        }
Exemplo n.º 2
0
        public ActionResult GetAllDevices()
        {
            var res = _deviceAPI.GetAllDomain();
            //ViewBag.list = res.Select(_ => _.ConvertToAPI()).ToList();
            IEnumerable AllDevices = res.Select(_ => _.ConvertToAPI()).ToList();

            return(View(AllDevices));
            //return View();
        }