// GET: Devices
        public async Task <IActionResult> Index()
        {
            var viewModel = await mapper.ProjectTo <DeviceIndex>(sqlService.GetAllDevices()).ToListAsync();

            return(View(viewModel));
        }