public void AddOrder(Order_BaseInfo order)
        {
            if (order != null)
                return;

            try
            {
                using (var context = new EntityMember())
                {
                    context.Order_BaseInfo.Add(order);

                    foreach (var item in order.Order_ItemInfo)
                        context.Order_ItemInfo.Add(item);

                    context.SaveChanges();
                }

                this.AddLog(JsonConvert.SerializeObject(order), "增加订单", 20, order.CreateMemberID.Value);
            }
            catch (Exception error)
            {
                LogHelper.AppError(error.Message);
            }
        }
        public void AddLog(string info, string memo, byte type, int createMemberId)
        {
            try
            {
                using (var context = new EntityMember())
                {
                    var log = new SYS_LogInfo
                    {
                        ActionMemo = memo,
                        ActionType = type,
                        CreateMemberID = createMemberId,
                        ActionMsg = info
                    };

                    context.SaveChanges();
                }
            }
            catch (Exception error)
            {
                LogHelper.AppError(error.Message);
            }
        }
        public void AddUserInfo(BaseInfo_UserInfo userInfo)
        {
            if (userInfo == null)
                return;

            try
            {
                using (var context = new EntityMember())
                {
                    context.BaseInfo_UserInfo.Add(userInfo);

                    context.SaveChanges();
                }

                this.AddLog(JsonConvert.SerializeObject(userInfo), "增加用户", 10, userInfo.ID);
            }
            catch (Exception error)
            {
                LogHelper.AppError(error.Message);
            }
        }