/// <summary>
        /// Removes a user from the membership data source.
        /// </summary>
        /// <returns>
        /// true if the user was successfully deleted; otherwise, false.
        /// </returns>
        /// <param name="username">The name of the user to delete.</param><param name="deleteAllRelatedData">true to delete data related to the user from the database; false to leave data related to the user in the database.</param>
        public override bool DeleteUser(string username, bool deleteAllRelatedData)
        {
            bool successflag = false;

            if (deleteAllRelatedData)
            {
                var user = (RestaurantUser)GetUser(username, true);
                if (user != null)
                {
                    successflag = UserRepository.Delete(user.UserId);
                }
            }
            successflag = (successflag == deleteAllRelatedData) & base.DeleteUser(username, deleteAllRelatedData);
            return(successflag);
        }