HtmlHelperExtensions.FollowToggle Method

Namespace:
Weavy.Web.Extensions
Assembly:
Weavy.Web.dll

FollowToggle(HtmlHelper, User)

Returns a button element (<button>) for following/unfollowing the specified user.

public static MvcHtmlString FollowToggle(this HtmlHelper html, User user)

Parameters

html
System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

user
User

The entity for which to generate a star link.

Returns

System.Web.Mvc.MvcHtmlString

A button.