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); } }
public void SetAreaCode(AreaCodes areaCodes) { AreaCode = (areaCodes != null && areaCodes.Count > 0) ? areaCodes.Find(item => item.Num == AreaCodeNo) : null; }