public async Task <IActionResult> LockedUsers( Guid?siteId, int pageNumber = 1, int pageSize = -1) { var selectedSite = await _siteManager.GetSiteForDataOperations(siteId); // only server admin site can edit other sites settings if (selectedSite.Id != _siteManager.CurrentSite.Id) { ViewData["Title"] = string.Format(CultureInfo.CurrentUICulture, _sr["{0} - Locked Out User Accounts"], selectedSite.SiteName); } else { ViewData["Title"] = _sr["Locked Out User Accounts"]; } var itemsPerPage = _uiOptions.DefaultPageSize_UserList; if (pageSize > 0) { itemsPerPage = pageSize; } var siteMembers = await _userManager.GetPageLockedUsers( selectedSite.Id, pageNumber, itemsPerPage); var model = new UserListViewModel { SiteId = selectedSite.Id, UserList = siteMembers, ShowAlphaPager = false, TimeZoneId = await _timeZoneIdResolver.GetUserTimeZoneId(), ActionName = "LockedUsers" }; return(View(model)); }