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