Exemplo n.º 1
0
        public static string Pattern(this UrlHelper @this, DesignerKey designerKey, string categoryKey, string reference, int pageIndex)
        {
            Acknowledge.Object(@this);

            object routeValues;

            if (pageIndex > 1)
            {
                routeValues = new { designerKey = designerKey.ToString(), categoryKey = categoryKey, reference = reference, p = pageIndex };
            }
            else
            {
                routeValues = new { designerKey = designerKey.ToString(), categoryKey = categoryKey, reference = reference };
            }

            return(SecureAction(@this, Constants.ActionName.Designer.Pattern, Constants.ControllerName.Designer, routeValues));
        }
Exemplo n.º 2
0
        public static string Designer(this UrlHelper @this, DesignerKey designerKey, int pageIndex)
        {
            Acknowledge.Object(@this);

            object routeValues;

            if (pageIndex > 1)
            {
                routeValues = new { designerKey = designerKey.ToString(), p = pageIndex };
            }
            else
            {
                routeValues = new { designerKey = designerKey.ToString() };
            }

            return(SecureAction(@this, Constants.ActionName.Designer.Index, Constants.ControllerName.Designer, routeValues));
        }