public long Insert(TableSource cat, OperationType type, string srcId)
        {
            var title = string.Format("{0} {1}", type.GetDescriotion(), cat.GetDescriotion());
            var log   = new SysOperationLog
            {
                DataSouceId = srcId,
                DataSource  = cat.ToString(),
                LogCat      = cat,
                LogDesc     = "",
                LogTitle    = title,
                LogType     = type,
                CreateIP    = GetIP()
            };

            return(Insert(log));
        }
        public async Task Insert(TableSource cat, OperationType type, string desc, string srcId)
        {
            var title = string.Format("{0} {1}", type.GetDescriotion(), cat.GetDescriotion());
            var log   = new SysOperationLog
            {
                CommonStatus = CommonStatus.Enabled,
                DataSouceId  = srcId,
                DataSource   = cat.ToString(),
                LogCat       = cat,
                LogDesc      = desc,
                LogTitle     = title,
                LogType      = type
            };

            await SaveAsync(log);
        }