Example #1
0
        public string GetViewUrl(Type type, string specified)
        {
            if (type == null)
            {
                return("");
            }

            string typeName = GetTypeNameFromType(type);

            return(UrlFactory.GetObjectListUrl(typeName, specified));
        }
Example #2
0
        public string GetListUrl(Type type, string specified, object obj, string propertyName)
        {
            if (type == null)
            {
                return("");
            }

            string className = GetTypeNameFromType(type);

            if (obj == null)
            {
                return(UrlFactory.GetObjectListUrl(className, specified));
            }
            else
            {
                string typeName = GetTypeNameFromType(obj.GetType());
                string id       = GetObjectIdentity(obj);

                return(UrlFactory.GetObjectListUrl(className, typeName, id, propertyName, specified));
            }
        }