|
20 | 20 | using LearningHub.Nhs.WebUI.Helpers; |
21 | 21 | using LearningHub.Nhs.WebUI.Interfaces; |
22 | 22 | using LearningHub.Nhs.WebUI.Models.Account; |
| 23 | + using LinqToTwitter.Provider; |
23 | 24 | using Microsoft.AspNetCore.Authorization; |
24 | 25 | using Microsoft.AspNetCore.Hosting; |
25 | 26 | using Microsoft.AspNetCore.Http.Features; |
@@ -953,7 +954,7 @@ public async Task<IActionResult> CreateAccountWorkPlaceSearch() |
953 | 954 | public async Task<IActionResult> CreateAccountWorkPlace(AccountCreationViewModel accountCreationViewModel) |
954 | 955 | { |
955 | 956 | var accountCreation = await this.multiPageFormService.GetMultiPageFormData<AccountCreationViewModel>(MultiPageFormDataFeature.AddRegistrationPrompt, this.TempData); |
956 | | - |
| 957 | + accountCreation.LocationId = "606"; |
957 | 958 | if (string.IsNullOrWhiteSpace(accountCreationViewModel.FilterText)) |
958 | 959 | { |
959 | 960 | if (!string.IsNullOrWhiteSpace(accountCreation.LocationId)) |
@@ -1265,6 +1266,12 @@ private async Task<AccountCreationConfirmation> GetAccountConfirmationDetails(Ac |
1265 | 1266 | var employer = await this.locationService.GetByIdAsync(int.TryParse(accountCreationViewModel.LocationId, out int primaryEmploymentId) ? primaryEmploymentId : 0); |
1266 | 1267 | var region = await this.regionService.GetAllAsync(); |
1267 | 1268 | var specialty = await this.specialtyService.GetSpecialtiesAsync(); |
| 1269 | + |
| 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 | + // } |
1268 | 1275 | var role = await this.jobRoleService.GetPagedFilteredAsync(accountCreationViewModel.CurrentRoleName, accountCreationViewModel.CurrentPageIndex, UserRegistrationContentPageSize); |
1269 | 1276 | if (role.Item1 > 0) |
1270 | 1277 | { |
|
0 commit comments