Example #1
0
        /// <summary author="James Heim" created="2019/04/18">
        /// Create a new MemberTab for the specified Member.
        /// </summary>
        /// <remarks>
        /// Modified by James Heim
        /// Modified 2019-05-01
        /// Stored Procedure does not return rowcount, and database is locked down,
        /// so set result to true if it ran without exception.
        /// (Procedure throws error if there exists an already active member tab.)
        /// </remarks>
        /// <param name="memberID"></param>
        /// <returns>Whether the tab was created.</returns>
        public bool CreateMemberTab(int memberID)
        {
            bool result = false;

            try
            {
                _memberTabAccessor.InsertMemberTab(memberID);
                result = true;
            }
            catch (Exception ex)
            {
                ExceptionLogManager.getInstance().LogException(ex);
                throw ex;
            }

            return(result);
        }