public async Task <bool> ChangePassword(TUser user, ChangePasswordModel model)
        {
            if (!model.IsCompare())
            {
                throw new CoreException("Compare password is not valid", 3);
            }
            if (user.Password != RepositoryState.GetHashString(model.OldPassword))
            {
                throw new CoreException(" Passwor is not valid", 2);
            }
            user.Password = RepositoryState.GetHashString(model.Password);
            await Update(user);

            return(true);
        }