Esempio n. 1
0
        public ReturnValueInfo UpdateRecord(CodeMasterInfo codeMasterInfo)
        {
            if (codeMasterInfo == null)
            {
                return(null);
            }

            ReturnValueInfo returnValue = new ReturnValueInfo();

            bool isSuccess = false;

            try
            {
                isSuccess = this._codeMasterDA.UpdateRecord(codeMasterInfo);
            }
            catch (Exception Ex)
            {
                throw Ex;
            }

            if (isSuccess)
            {
                returnValue.boolValue   = true;
                returnValue.messageText = DefineConstantValue.SystemMessageText.strMessageText_I_UpdateSuccess;
            }
            else
            {
                returnValue.boolValue   = false;
                returnValue.messageText = DefineConstantValue.SystemMessageText.strMessageText_I_UpdateFail;
            }

            return(returnValue);
        }