private static IDictionary <string, object> Attributes(string cssClass, string id, string style) { var htmlAttributes = new RouteValueDictionary(); htmlAttributes.AddOptional("class", cssClass); htmlAttributes.AddOptional("id", id); htmlAttributes.AddOptional("style", style); return(htmlAttributes); }