private static Label LabelSave(Label label) { if (!label.IsValid) { return(label); } Label result; if (label.IsNew) { result = LabelService.LabelInsert(label); } else { result = LabelService.LabelUpdate(label); } return(result); }
public static bool LabelDelete(SourceType sourceType, int sourceId, string name) { return(LabelService.LabelDelete( LabelService.LabelFetch(sourceType, sourceId, name))); }
public static Label LabelAdd(ISource source, string name) { var result = LabelService.LabelAdd(source.SourceType, source.SourceId, name); return(result); }