public IActionResult DeviceGroups() { IEnumerable <DeviceGroup> deviceGroups = _deviceGroupService.GetDeviceGroups(); IEnumerable <User> users = _userService.GetUsers(); UsersDeviceGroupsModelView usersDeviceGroupsModel = new UsersDeviceGroupsModelView(users, deviceGroups); return(View(usersDeviceGroupsModel)); }
public IActionResult DeviceGroups() { IEnumerable <DeviceGroup> deviceGroups = _deviceGroupService.GetDeviceGroups(_userId); return(View(deviceGroups)); }