public async Task <RegisterResult> RegisterAsync(RegisterUser model)
        {
            if (model == null)
            {
            }
            if (!model.CheckValidate())
            {
            }
            var user = CheckUser(model.UserName);

            if (user != null)
            {
                throw new CoreException("User not found", 0);
            }
            user = (TUser)Activator.CreateInstance(typeof(TUser));
            user.Create <string>(model);
            await RegisterAsync(user);

            return(RegisterResult.Create(user));
        }