/// <summary> /// Gets an URL with query /// </summary> /// <param name="urlHelper">The URL helper.</param> /// <param name="url">The URL.</param> /// <param name="query">The query.</param> /// <returns>An URL.</returns> public static string Url(this UrlHelper urlHelper, string url, object query) { return(UrlUtility.GetUrl(url, query)); }
/// <summary> /// Gets an URL. /// </summary> /// <param name="urlHelper">The URL helper.</param> /// <param name="url">The URL.</param> /// <returns>An URL.</returns> public static string Url(this UrlHelper urlHelper, string url) { return(UrlUtility.GetUrl(url)); }
/// <summary> /// Gets an URL for the specified identifier. /// </summary> /// <param name="urlHelper">The URL helper.</param> /// <param name="id">The identifier.</param> /// <returns>An URL.</returns> public static string Url(this UrlHelper urlHelper, int id) { return(UrlUtility.GetUrl(id)); }
/// <summary> /// Gets an URL for the specified identifier with query. /// </summary> /// <param name="urlHelper">The URL helper.</param> /// <param name="id">The identifier.</param> /// <param name="query">The query.</param> /// <returns>An URL.</returns> public static string Url(this UrlHelper urlHelper, int id, object query) { return(UrlUtility.GetUrl(id, query)); }
/// <summary> /// Redirects to page. /// </summary> /// <param name="id">The identifier.</param> /// <param name="query">The query.</param> /// <returns>A redirect result.</returns> protected RedirectResult RedirectToPage(int id, object query) { var url = UrlUtility.GetUrl(id, query); return(Redirect(url)); }