public static string DeleteApprentice(this ILinkGenerator linkGenerator,
                                       string accountHashedId,
                                       string cohortReference,
                                       string draftApprenticeshipHashedId)
 {
     return(linkGenerator.CommitmentsLink($"accounts/{accountHashedId}/apprentices/{cohortReference}/apprenticeships/{draftApprenticeshipHashedId}/delete"));
 }
 public static string DatalockChanges(
     this ILinkGenerator linkGenerator,
     string accountHashedId,
     string hashedApprenticeshipId)
 {
     return(linkGenerator.CommitmentsLink($"accounts/{accountHashedId}/apprentices/manage/{hashedApprenticeshipId}/datalock/changes"));
 }
 public static string WhenToApplyStopApprentice(
     this ILinkGenerator linkGenerator,
     string accountHashedId,
     string hashedApprenticeshipId)
 {
     return(linkGenerator.CommitmentsLink($"accounts/{accountHashedId}/apprentices/manage/{hashedApprenticeshipId}/details/statuschange/stop/whentoapply"));
 }
 public static string EditApprenticeship(
     this ILinkGenerator linkGenerator,
     string accountHashedId,
     string hashedApprenticeshipId)
 {
     return(linkGenerator.CommitmentsLink($"accounts/{accountHashedId}/apprentices/manage/{hashedApprenticeshipId}/edit"));
 }
 public static string EditStopDate(
     this ILinkGenerator linkGenerator,
     string accountHashedId,
     string hashedApprenticeshipId)
 {
     return(linkGenerator.CommitmentsLink($"accounts/{accountHashedId}/apprentices/manage/{hashedApprenticeshipId}/details/editstopdate"));
 }
Пример #6
0
        public string CommitmentsLink(string routeName, params string[] args)
        {
            var route = _routes.Commitments[routeName];

            if (args != null && args.Length > 0)
            {
                route = string.Format(route, args);
            }

            return(_generator.CommitmentsLink(route));
        }
 public static string SelectTransferConnection(this ILinkGenerator linkGenerator, string accountHashedId)
 {
     return(linkGenerator.CommitmentsLink($"accounts/{accountHashedId}/apprentices/transferConnection/create"));
 }
 public static string HasLearnerBeenMadeRedundant(this ILinkGenerator linkGenerator,
                                                  string hashedApprenticeshipId,
                                                  string changeType)
 {
     return(linkGenerator.CommitmentsLink($"{hashedApprenticeshipId}/details/statuschange/{changeType}/maderedundant"));
 }
 public static string SelectLegalEntity(this ILinkGenerator linkGenerator, string accountHashedId)
 {
     return(linkGenerator.CommitmentsLink($"accounts/{accountHashedId}/apprentices/legalEntity/create"));
 }