Ejemplo n.º 1
0
            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)));
            }
Ejemplo n.º 2
0
 public static string BuildRoute(string nameIdentifier) => RouteHelper.BuildRouteParts(BaseRoute, nameIdentifier);
Ejemplo n.º 3
0
 public static string?TryGetEmail(string url)
 {
     return(RouteHelper.TryGetQueryParameterValue(url, EmailParameter));
 }
Ejemplo n.º 4
0
 public static string BuildRoute() => RouteHelper.BuildRouteParts(BaseRoute);
Ejemplo n.º 5
0
 public static string BuildRoute(string fullUrl)
 {
     return(RouteHelper.BuildRoutePartsFromUrlFriendlyParts(UniPage.BaseRoute, fullUrl));
 }
Ejemplo n.º 6
0
 public static string BuildRoute(string secret, string email) => RouteHelper.BuildRoutePartsWithParameters(new NameValueCollection {
     { EmailParameter, email }
 }, BaseRoute, secret);
Ejemplo n.º 7
0
 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));
 }
Ejemplo n.º 8
0
 public static string BuildRoute(string courseUrl, string studyGroupUrl, string universityUrl)
 {
     return(RouteHelper.BuildRouteParts(UniPage.BaseRoute, universityUrl, studyGroupUrl, courseUrl));
 }
Ejemplo n.º 9
0
 public static string BuildRoute() => RouteHelper.BuildRouteParts("/TermsOfUse");
Ejemplo n.º 10
0
 public static string BuildRoute() => RouteHelper.BuildRouteParts("/FileNotFoundError");
Ejemplo n.º 11
0
 public static string BuildRoute(string universityUrl) => RouteHelper.BuildRouteParts(BaseRoute, universityUrl);
Ejemplo n.º 12
0
 public static string BuildRoute() => RouteHelper.BuildRouteParts("/DownloadTimeError");
Ejemplo n.º 13
0
 public static string BuildRoute(string secret)
 => RouteHelper.BuildRouteParts(BaseRoute, secret);