예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="connection"></param>
        /// <param name="transaction"></param>
        /// <returns></returns>
        public bool Create(UserEntity entity, DbConnection connection, DbTransaction transaction)
        {
            var error = UsersGateway.Insert(entity, connection, transaction);

            return(error == KandaTableDataGateway.NO_ERRORS);
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="connection"></param>
        /// <param name="transaction"></param>
        /// <returns></returns>
        public bool Create(UserEntity entity, DbConnection connection, DbTransaction transaction)
        {
            var created = UsersGateway.Insert(entity, connection, transaction);

            return(created == 1);
        }