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
user
User

Returns

System.Web.Mvc.MvcHtmlString

A button.