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

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

            return(View(deviceGroups));
        }