public static void RenderPartial(this HtmlHelper helper, TypeViewModel model) { helper.RenderPartial(model.PartialName, model, model.Layout); }
public static bool HasDeleteButton(this TypeViewModel model) { return (!(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_DELETE_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_DELETE_BUTTON])); }