Beispiel #1
0
        public IActionResult DeviceGroups()
        {
            IEnumerable <DeviceGroup>  deviceGroups           = _deviceGroupService.GetDeviceGroups();
            IEnumerable <User>         users                  = _userService.GetUsers();
            UsersDeviceGroupsModelView usersDeviceGroupsModel = new UsersDeviceGroupsModelView(users, deviceGroups);

            return(View(usersDeviceGroupsModel));
        }
Beispiel #2
0
        public IActionResult DeviceGroups()
        {
            IEnumerable <DeviceGroup> deviceGroups = _deviceGroupService.GetDeviceGroups(_userId);

            return(View(deviceGroups));
        }