public async Task <IActionResult> InstallUsers() { var result = await _sampleUsersService.InstallAsync(); if (result.Succeeded) { // Add alert _alerter.Success(T["Sample Users Added Successfully!"]); // Redirect to success return(RedirectToAction(nameof(Index))); } // If we reach this point something went wrong foreach (var error in result.Errors) { // Add errors _alerter.Danger(T[error.Description]); } // And redirect to display return(RedirectToAction(nameof(Index))); }