コード例 #1
0
        //-------------------------Update Customer Account Information----------------------------------------

        public static int UpdateCustomer(AspxCommonInfo aspxCommonObj, string firstName, string lastName, string email)
        {
            try
            {
                List <KeyValuePair <string, object> > parameterCollection = CommonParmBuilder.GetParamSPUCt(aspxCommonObj);
                parameterCollection.Add(new KeyValuePair <string, object>("FirstName", firstName));
                parameterCollection.Add(new KeyValuePair <string, object>("LastName", lastName));
                parameterCollection.Add(new KeyValuePair <string, object>("Email", email));
                OracleHandler sqlh      = new OracleHandler();
                int           errorCode = sqlh.ExecuteNonQueryAsGivenType <int>("usp_Aspx_UpdateCustomer", parameterCollection, "ErrorCode");
                return(errorCode);
            }
            catch (Exception)
            {
                throw;
            }
        }