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 secret, string email) => RouteHelper.BuildRoutePartsWithParameters(new NameValueCollection { { EmailParameter, email } }, BaseRoute, secret);