public Error RemoveBind(int refrenceId, TemplateBindType templateBindType) { bool result = tpldal.RemoveBind(templateBindType, refrenceId); RepositoryDataCache.ClearTemplateBinds(); return(null); }
public Error RemoveBinds(int refrenceId, TemplateBind[] list) { if (list == null || list.Length == 0) { return(null); } foreach (TemplateBind b in list) { this.tpldal.RemoveBind(b.BindType, refrenceId); RepositoryDataCache.ClearTemplateBinds(); } return(null); }
public Error SaveTemplateBinds(int refrenceId, TemplateBind[] list) { if (list == null || list.Length == 0) { return(null); } foreach (TemplateBind b in list) { tpldal.SetBind(b.BindType, refrenceId, b.TplPath); } RepositoryDataCache.ClearTemplateBinds(); return(null); }
public int SaveTemplateBind(int refrenceId, TemplateBind templateBind) { tpldal.SetBind(templateBind.BindType, refrenceId, templateBind.TplPath); RepositoryDataCache.ClearTemplateBinds(); return(templateBind.ID); }