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