public static List <Store> GetStoresForDistrict(int id) { var storeData = DistrictProcessor.GetStoresForDistrict(id); List <Store> stores = new List <Store>(); foreach (var store in storeData) { stores.Add(new Store { store_ID = store.Store_ID, name = store.Name }); } return(stores); }
public StoreModel[] GetStoresForDistrict(int district_ID) { return(DistrictProcessor.GetStoresForDistrict(district_ID)); }