Example #1
0
 public void SelectCustomerByNum(int num)
 {
     roles     = serviceClient.SelectAllRoles();
     areaCodes = serviceClient.SelectAllAreaCodes();
     cities    = serviceClient.SelectAllCities();
     customersDB.SelectCustomerByNum(num);
     AddRange(customersDB.customers);
     foreach (Customer m in this)
     {
         SetObjects(m);
     }
 }
Example #2
0
 public void SetAreaCode(AreaCodes areaCodes)
 {
     AreaCode = (areaCodes != null && areaCodes.Count > 0) ?  areaCodes.Find(item => item.Num == AreaCodeNo) : null;
 }