Example #1
0
        private int CreateEvent(EventControl item)
        {
            TagEvent model = item.GetModel();

            model.Id = GetTagEventId(model.DailyLogId); // 考虑到同时添加多条Event时,EventId要实时更新
            return(context.AddTagEvent(model));
        }
Example #2
0
        private int DeleteEvent(EventControl item)
        {
            TagEvent model = item.GetModel();

            return(context.DeleteTagEvent(model));
        }