Skip to content

Commit

Permalink
Merge pull request #152 from SkillsFundingAgency/CON-2619-COP-page-urls
Browse files Browse the repository at this point in the history
CON-2619 Update page urls
  • Loading branch information
narendranogothu authored Nov 13, 2020
2 parents f3f01c7 + c1bd72f commit 9414552
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public IActionResult ChangeStatus(ChangeStatusRequestViewModel viewModel)
}
}

[Route("{apprenticeshipHashedId}/details/changing-training-provider", Name = RouteNames.ChangeProviderInform)]
[Route("{apprenticeshipHashedId}/change-provider", Name = RouteNames.ChangeProviderInform)]
[DasAuthorize(EmployerFeature.ChangeOfProvider)]
public async Task<IActionResult> ChangeProviderInform(ChangeProviderInformRequest request)
{
Expand All @@ -133,7 +133,7 @@ public IActionResult ApprenticeNotStoppedError()


[HttpGet]
[Route("{apprenticeshipHashedId}/change-provider/enter-new-training-provider-name-or-reference-number", Name = RouteNames.EnterNewTrainingProvider)]
[Route("{apprenticeshipHashedId}/change-provider/select-provider", Name = RouteNames.EnterNewTrainingProvider)]
[DasAuthorize(EmployerFeature.ChangeOfProvider)]
public async Task<IActionResult> EnterNewTrainingProvider(EnterNewTrainingProviderRequest request)
{
Expand All @@ -143,7 +143,7 @@ public async Task<IActionResult> EnterNewTrainingProvider(EnterNewTrainingProvid
}

[HttpPost]
[Route("{apprenticeshipHashedId}/change-provider/enter-new-training-provider-name-or-reference-number", Name = RouteNames.EnterNewTrainingProvider)]
[Route("{apprenticeshipHashedId}/change-provider/select-provider", Name = RouteNames.EnterNewTrainingProvider)]
[DasAuthorize(EmployerFeature.ChangeOfProvider)]
public async Task<IActionResult> EnterNewTrainingProvider(EnterNewTrainingProviderViewModel viewModel)
{
Expand All @@ -152,15 +152,15 @@ public async Task<IActionResult> EnterNewTrainingProvider(EnterNewTrainingProvid
return RedirectToRoute(RouteNames.SendRequestNewTrainingProvider, new { request.AccountHashedId, request.ApprenticeshipHashedId, request.ProviderId });
}

[Route("{apprenticeshipHashedId}/change-provider/send-request-new-training-provider", Name = RouteNames.SendRequestNewTrainingProvider)]
[Route("{apprenticeshipHashedId}/change-provider/send-request", Name = RouteNames.SendRequestNewTrainingProvider)]
[DasAuthorize(EmployerFeature.ChangeOfProvider)]
public async Task<IActionResult> SendRequestNewTrainingProvider(SendNewTrainingProviderRequest request)
{
var viewModel = await _modelMapper.Map<SendNewTrainingProviderViewModel>(request);
return View(viewModel);
}

[Route("{apprenticeshipHashedId}/change-provider/send-request-new-training-provider", Name = RouteNames.SendRequestNewTrainingProvider)]
[Route("{apprenticeshipHashedId}/change-provider/send-request", Name = RouteNames.SendRequestNewTrainingProvider)]
[HttpPost]
[DasAuthorize(EmployerFeature.ChangeOfProvider)]
public IActionResult SendRequestNewTrainingProvider(SendNewTrainingProviderViewModel request)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ public static class RouteNames
public const string ApprenticeDetail = "apprentice-details";
public const string ApprenticeEditEndDate = "apprentice-edit-enddate";

public const string ChangeProviderInform = "changing-training-provider-inform";
public const string ChangeProviderInform = "change-provider-inform";
public const string ApprenticeNotStoppedError = "aprentice-not-stopped-error";
public const string EnterNewTrainingProvider = "enter-new-training-provider-name-or-reference-number";
public const string SendRequestNewTrainingProvider = "send-request-new-training-provider";
public const string EnterNewTrainingProvider = "select-provider";
public const string SendRequestNewTrainingProvider = "send-request-new";
public const string ChangeProviderRequestedConfirmation = "change-provider-requested";
}
}

0 comments on commit 9414552

Please sign in to comment.