public static string GetPostFile(Guid id, Guid secondaryToken, string fileName, Language language) { var encodedName = HttpUtility.UrlEncode(fileName); var queryParameters = new NameValueCollection() { { FileIdParameter, id.ToString() }, { SecondaryTokenParameter, secondaryToken.ToString() }, { FileNameParameter, encodedName }, { LanguageParameter, language.ToString() } }; return(RouteHelper.BuildRoutePartsWithParameters(queryParameters, FileControllerRoute, nameof(GetPostFile))); }
public static string BuildRoute(string nameIdentifier) => RouteHelper.BuildRouteParts(BaseRoute, nameIdentifier);
public static string?TryGetEmail(string url) { return(RouteHelper.TryGetQueryParameterValue(url, EmailParameter)); }
public static string BuildRoute() => RouteHelper.BuildRouteParts(BaseRoute);
public static string BuildRoute(string fullUrl) { return(RouteHelper.BuildRoutePartsFromUrlFriendlyParts(UniPage.BaseRoute, fullUrl)); }
public static string BuildRoute(string secret, string email) => RouteHelper.BuildRoutePartsWithParameters(new NameValueCollection { { EmailParameter, email } }, BaseRoute, secret);
public static string BuildRoute(CourseDto course, string?postType = null) { return(postType == null? RouteHelper.BuildRouteParts(UniPage.BaseRoute, course.UniversityUrl, course.StudyGroupUrl, course.Url) : RouteHelper.BuildRouteParts(UniPage.BaseRoute, course.UniversityUrl, course.StudyGroupUrl, course.Url, postType)); }
public static string BuildRoute(string courseUrl, string studyGroupUrl, string universityUrl) { return(RouteHelper.BuildRouteParts(UniPage.BaseRoute, universityUrl, studyGroupUrl, courseUrl)); }
public static string BuildRoute() => RouteHelper.BuildRouteParts("/TermsOfUse");
public static string BuildRoute() => RouteHelper.BuildRouteParts("/FileNotFoundError");
public static string BuildRoute(string universityUrl) => RouteHelper.BuildRouteParts(BaseRoute, universityUrl);
public static string BuildRoute() => RouteHelper.BuildRouteParts("/DownloadTimeError");
public static string BuildRoute(string secret) => RouteHelper.BuildRouteParts(BaseRoute, secret);