@using WebCms.Utility @model object @{ var htmlAttributes = new RouteValueDictionary(); if (ViewBag.@class != null) { htmlAttributes.Add("class", "form-control " + ViewBag.@class); } else { htmlAttributes.Add("class", "form-control"); } }