Skip to content

Commit b4214a8

Browse files
committed
TD-3953: Manager Role fix
1 parent 28898c9 commit b4214a8

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

LearningHub.Nhs.WebUI/Controllers/AccountController.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,15 +1267,10 @@ private async Task<AccountCreationConfirmation> GetAccountConfirmationDetails(Ac
12671267
var region = await this.regionService.GetAllAsync();
12681268
var specialty = await this.specialtyService.GetSpecialtiesAsync();
12691269

1270-
// var role = await this.jobRoleService.GetFilteredAsync(accountCreationViewModel.CurrentRoleName);
1271-
// if (role.Count > 0)
1272-
// {
1273-
// accountCreationViewModel.CurrentRoleName = role.FirstOrDefault(x => x.Id == int.Parse(accountCreationViewModel.CurrentRole)).NameWithStaffGroup;
1274-
// }
1275-
var role = await this.jobRoleService.GetPagedFilteredAsync(accountCreationViewModel.CurrentRoleName, accountCreationViewModel.CurrentPageIndex, UserRegistrationContentPageSize);
1276-
if (role.Item1 > 0)
1270+
var role = await this.jobRoleService.GetFilteredAsync(accountCreationViewModel.CurrentRoleName);
1271+
if (role.Count > 0)
12771272
{
1278-
accountCreationViewModel.CurrentRoleName = role.Item2.FirstOrDefault(x => x.Id == int.Parse(accountCreationViewModel.CurrentRole)).NameWithStaffGroup;
1273+
accountCreationViewModel.CurrentRoleName = role.FirstOrDefault(x => x.Id == int.Parse(accountCreationViewModel.CurrentRole)).NameWithStaffGroup;
12791274
}
12801275

12811276
var grade = await this.gradeService.GetGradesForJobRoleAsync(int.TryParse(accountCreationViewModel.CurrentRole, out int roleId) ? roleId : 0);

0 commit comments

Comments
 (0)