Esempio n. 1
0
        private static string DirectUrl(Context context, View view)
        {
            var queryString = HttpUtility.ParseQueryString(context.Query);

            if (view != null)
            {
                queryString["View"] = view.ToJson();
            }
            var url = Locations.AbsoluteDirectUri(context);

            switch (context.Action)
            {
            case "gridrows":
                url = url.Replace("gridrows", "index");
                break;

            default:
                break;
            }
            return(new System.UriBuilder(url)
            {
                Query = queryString.ToString()
            }.ToString());
        }