Beispiel #1
0
        public bool DeleteUser(user mUser, bool deleteAllRelatedData)
        {
            IuserService UserSrv = new userService(SessionFactoryConfigPath);

            if (mUser == null)
            {
                return(false);
            }
            try
            {
                UserSrv.Delete(mUser);
                UserSrv.CommitChanges();
                log.Info("Delete User: "******"Error  Delete User: " + mUser.username, ex);
                return(false);
            }
        }