public User(NavUser user)
 {
     this.Address = user.Address;
     this.Balance = user.Balance;
     this.City = user.City;
     this.CountryCode = user.CountryCode;
     this.Email = user.Email;
     this.IsCompany = user.Company;
     this.Name = user.Name;
     this.No = user.No;
     this.PostalCode = user.PostalCode;
 }
        public void Register(string countryCode, string address, string city, string postalCode, 
                                string email, string pass, string name, bool isCorporate)
        {
            this.RegisterStatus = "Registering";

            if(name == "")
            {
                this.RegisterStatus = "Name is required";
                return;
            }
            else if(email == "")
            {
                this.RegisterStatus = "E-mail is required";
                return;
            }
            else if (!ValidateEmail(email))
            {
                this.RegisterStatus = "Bad email format!";
                return;
            }
            else if(pass == "")
            {
                this.RegisterStatus = "Password is required";
            }

            NavUser user = new NavUser()
            {
                Address = address,
                City = city,
                Company = isCorporate,
                CountryCode = countryCode,
                Email = email,
                Name = name,
                PostalCode = postalCode
            };

            this.Email = email;
            this.Pass = pass;
            this._client.AddUserAsync(user, pass);
        }