Example #1
0
 public void UpdateStore(Store store)
 {
     repository.UpdateStore(store);
 }
Example #2
0
 public void UpdateStore(Store store)
 {
     var updateStore = _stores.First(s => s.Id == store.Id);
     if (updateStore != null)
     {
         updateStore.City = store.City;
         updateStore.Name = store.Name;
         updateStore.Number = store.Number;
         updateStore.DistrictId = store.DistrictId;
         updateStore.Latitude = store.Latitude;
         updateStore.Longitude = store.Longitude;
         updateStore.RetailerId = store.RetailerId;
         updateStore.Sales = store.Sales;
         updateStore.State = store.State;
         updateStore.TerritoryId = store.TerritoryId;
     }
 }