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