示例#1
0
        public bool NewUser(USER user)
        {
            //return false if customer creation a failure
            bool succes = true;

            //creat new User
            try
            {
                try
                {
                    handler.BLL_AddUser(user);
                }
                catch (ApplicationException e)
                {
                    function.logAnError("Faild to add new acoount NewUser method of BLL.Authentication class" + e);
                    throw new ApplicationException(". We are unable to create a new accounmt at this time try again later.");
                }
            }
            catch
            {
                succes = false;
            }

            //return results
            return(succes);
        }