Skip to content

Commit 28898c9

Browse files
committed
First fix
1 parent 66aace7 commit 28898c9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

LearningHub.Nhs.WebUI/Controllers/AccountController.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using LearningHub.Nhs.WebUI.Helpers;
2121
using LearningHub.Nhs.WebUI.Interfaces;
2222
using LearningHub.Nhs.WebUI.Models.Account;
23+
using LinqToTwitter.Provider;
2324
using Microsoft.AspNetCore.Authorization;
2425
using Microsoft.AspNetCore.Hosting;
2526
using Microsoft.AspNetCore.Http.Features;
@@ -953,7 +954,7 @@ public async Task<IActionResult> CreateAccountWorkPlaceSearch()
953954
public async Task<IActionResult> CreateAccountWorkPlace(AccountCreationViewModel accountCreationViewModel)
954955
{
955956
var accountCreation = await this.multiPageFormService.GetMultiPageFormData<AccountCreationViewModel>(MultiPageFormDataFeature.AddRegistrationPrompt, this.TempData);
956-
957+
accountCreation.LocationId = "606";
957958
if (string.IsNullOrWhiteSpace(accountCreationViewModel.FilterText))
958959
{
959960
if (!string.IsNullOrWhiteSpace(accountCreation.LocationId))
@@ -1265,6 +1266,12 @@ private async Task<AccountCreationConfirmation> GetAccountConfirmationDetails(Ac
12651266
var employer = await this.locationService.GetByIdAsync(int.TryParse(accountCreationViewModel.LocationId, out int primaryEmploymentId) ? primaryEmploymentId : 0);
12661267
var region = await this.regionService.GetAllAsync();
12671268
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+
// }
12681275
var role = await this.jobRoleService.GetPagedFilteredAsync(accountCreationViewModel.CurrentRoleName, accountCreationViewModel.CurrentPageIndex, UserRegistrationContentPageSize);
12691276
if (role.Item1 > 0)
12701277
{

0 commit comments

Comments
 (0)