Example #1
0
        public override System.Web.Mvc.MvcHtmlString WriteFilter(System.Web.Mvc.HtmlHelper helper, object htmlAttributes)
        {
            IDictionary <string, object> efHtmlAttributes = new RouteValueDictionary(htmlAttributes);

            AddCommonHtmlAttributes(efHtmlAttributes);

            return(helper.Partial(PartialViewName, this));
        }
        public static IHtmlString Rating(this System.Web.Mvc.HtmlHelper html, Models.ProductRating rating)
        {
            if (rating == null || rating.ReviewCount == 0)
            {
                return(new System.Web.Mvc.MvcHtmlString("<span><em>No Rating</em></span>"));
            }

            return(html.Partial("_Rating", rating));
        }
        public static IHtmlContent VendrCheckoutPartial(this IHtmlHelper helper, string partialName, object model)
        {
            var pathHelper = GetPathHelper(helper);

            return(helper.Partial(pathHelper.GetVendrCheckoutPartialViewPath(partialName), model));
        }