예제 #1
0
        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);
        }
예제 #2
0
 public static bool LabelDelete(SourceType sourceType, int sourceId, string name)
 {
     return(LabelService.LabelDelete(
                LabelService.LabelFetch(sourceType, sourceId, name)));
 }
예제 #3
0
        public static Label LabelAdd(ISource source, string name)
        {
            var result = LabelService.LabelAdd(source.SourceType, source.SourceId, name);

            return(result);
        }