Exemplo n.º 1
0
        public OperatorState GetCustomItemValueByMember(string inserMember, Guid informationId, ref List <CustomItemValue> customItemValueList)
        {
            if (inserMember == string.Empty)
            {
                return(OperatorState.empty);
            }

            try
            {
                List <CustomItemValue> civList = new List <CustomItemValue>();
                var ItemList = _customItemDAL.SelectByInsertMember(inserMember);
                foreach (var item in ItemList)
                {
                    civList.AddRange(_customItemValueDAL.SelectByItemNameAndInforId(item.ItemName, informationId));
                }

                customItemValueList = civList;

                return(OperatorState.success);
            }
            catch (Exception ex)
            {
                LogHelper.writeLog_error(ex.Message);
                LogHelper.writeLog_error(ex.StackTrace);

                return(OperatorState.error);
            }
        }
Exemplo n.º 2
0
        public OperatorState GetCustomItems(string account, ref List <CustomItem> customItemList)
        {
            if (account == string.Empty)
            {
                return(OperatorState.empty);
            }

            try
            {
                customItemList = _customItemDAL.SelectByInsertMember(account).ToList();
                return(OperatorState.success);
            }
            catch (Exception ex)
            {
                LogHelper.writeLog_error(ex.Message);
                LogHelper.writeLog_error(ex.StackTrace);

                return(OperatorState.error);
            }
        }