public static MvcForm BeginForm(this HtmlHelper htmlHelper, string cssClass)
{
string actionName = (string)htmlHelper.ViewContext.RouteData.Values["action"];
string controllerName = (string)htmlHelper.ViewContext.RouteData.Values["controller"];
IDictionary<string, object> htmlAttributes = new Dictionary<string, object>();
htmlAttributes.Add("class", cssClass ?? string.Empty);
return htmlHelper.BeginForm(actionName, controllerName, FormMethod.Post, htmlAttributes);
}