public long InsertInfo(ActionInfo info) { ///验证ACTION_NAME不能重复 if (dal.IsExistActionName(info.ActionName)) { throw new Exception("MC:0x00000001"); ///Action Name is Existed! } info.ValidFlag = true; return(dal.Add(info)); }