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);
        }
Exemple #2
0
 public StoreModel[] GetStoresForDistrict(int district_ID)
 {
     return(DistrictProcessor.GetStoresForDistrict(district_ID));
 }