Exemplo n.º 1
0
        public static MvcHtmlString SerieListItem(this HtmlHelper htmlHelper, SerieListItemModel model)
        {
            if (model.HtmlAttributes == null)
            {
                model.HtmlAttributes = new RouteValueDictionary();
            }

            model.HtmlAttributes = model.HtmlAttributes;

            return(htmlHelper.Partial("~/Views/Controls/SerieListItem.cshtml", model));
        }
Exemplo n.º 2
0
        public static MvcHtmlString SerieListItem(this HtmlHelper htmlHelper, string title, string description, string imageUrl, int id, object htmlAttributes)
        {
            var model = new SerieListItemModel
            {
                Title          = title,
                Description    = description,
                ImageUrl       = imageUrl,
                HtmlAttributes = htmlAttributes,
                Id             = id
            };

            return(SerieListItem(htmlHelper, model));
        }