//New
 public IList<UserModel> getUserList()
 {
     IList<TTTV__UserInformation> data = proxy.getUserList();
     IList<UserModel> list = new List<UserModel>();
     foreach (var item in data)
     {
         UserModel model = new UserModel();
         model.UserName = item.Username;
         model.SelectedDetailProvincesValue = item.ProvinceDetailID;
         model.SelectedDistrictValue = item.DistrictID;
         model.SelectedProvinceValue = item.ProvinceID;
         model.Tinh = proxy.Tinh(item.ProvinceID);
         model.Quan = proxy.Quan(item.ProvinceID, item.DistrictID);
         model.Phuong = proxy.Phuong(item.ProvinceID, item.DistrictID, item.ProvinceDetailID);
         model.Companyname = item.CompanyName;
         model.BusinessCode = item.BusinessCode;
         model.Phone = item.Phone;
         model.Mobile = item.Mobile;
         model.CMND = item.PersonCode;
         model.Name = item.UserFullName;
         model.Age = item.Age;
         model.Address = item.Address;
         model.subAddress = item.SubAddress;
         list.Add(model);
     }
     return list;
 }
        // New
        public UserModel getUserById(string username)
        {
            TTTV__UserInformation item = proxy.getUserInfoByID(username);
            if (item != null)
            {
                UserModel model = new UserModel();

                model.UserName = item.Username;
                model.SelectedDetailProvincesValue = item.ProvinceDetailID;
                model.SelectedDistrictValue = item.DistrictID;
                model.SelectedProvinceValue = item.ProvinceID;
                model.Tinh = proxy.Tinh(item.ProvinceID);
                model.Quan = proxy.Quan(item.ProvinceID, item.DistrictID);
                model.Phuong = proxy.Phuong(item.ProvinceID, item.DistrictID, item.ProvinceDetailID);
                model.Companyname = item.CompanyName;
                model.BusinessCode = item.BusinessCode;
                model.Phone = item.Phone;
                model.Mobile = item.Mobile;
                model.CMND = item.PersonCode;
                model.Name = item.UserFullName;
                model.Age = item.Age;
                model.Address = item.Address;
                model.subAddress = item.SubAddress;
                return model;

            }
            else return null;
        }