Esempio n. 1
0
        public async Task <IActionResult> CheckOutDevicesAsync(SelectDevicesModel model)
        {
            ReturnUrl = HttpContext.Request.Headers["Referer"];

            var devicesId = model.Devices.Where(d => d.IsSelected).Select(d => d.Id).ToArray();

            await _checkouts.CheckOutDevices(model.EmployeeId, devicesId);

            return(Redirect(ReturnUrl));
        }