using System.Text;
using System.Web.Mvc;
using Kreta.BusinessLogic.Utils;
namespace Kreta.Web.Helpers
{
public static class SwitchButtonExtension
{
public static MvcHtmlString KretaSwitchButton(this HtmlHelper helper, string name, bool state, int offstateText = 134, int onstateText = 133)
{
string kikapcsolt = (bool)state ? "" : "-off";
var sb = new StringBuilder();
sb.AppendFormat("