Exemple #1
0
 public TS_21HandOverTerritory[] PostTSHandOverTerritory(TS_21HandOverTerritory[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_21HandOverTerritory>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #2
0
 public TS_23ChangeStateRelationships[] PostTSChangeStateRelationships(TS_23ChangeStateRelationships[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_23ChangeStateRelationships>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #3
0
 public TS_18Movement[] PostTSMovement(TS_18Movement[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_18Movement>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #4
0
 public TS_19TradeAndLoading2[] PostTSTradeAndLoading2(TS_19TradeAndLoading2[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_19TradeAndLoading2>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #5
0
 public TS_14FormFederations[] PostTSFormFederations(TS_14FormFederations[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_14FormFederations>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #6
0
 public TS_15CoastalDefence[] PostTSCoastalDefence(TS_15CoastalDefence[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_15CoastalDefence>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #7
0
 public TS_12IncreasePopulationDensity[] PostTSIncreasePopulationDensity(TS_12IncreasePopulationDensity[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_12IncreasePopulationDensity>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #8
0
 public TS_13BuildProductionSites[] PostTSBuildProductionSites(TS_13BuildProductionSites[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_13BuildProductionSites>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #9
0
 public TS_11BuildBaggageTrain[] PostTSBuildBaggageTrain(TS_11BuildBaggageTrain[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_11BuildBaggageTrain>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #10
0
 public TS_09RepairShips_BaggageTrains[] PostTSRepairShips_BaggageTrains(TS_09RepairShips_BaggageTrains[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_09RepairShips_BaggageTrains>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #11
0
 public TS_06IncreaseBrigadeXP[] PostTSIncreaseBrigadeXP(TS_06IncreaseBrigadeXP[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_06IncreaseBrigadeXP>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #12
0
 public TS_04SetUpAdditionalBrigades[] PostTSSetUpAdditionalBrigades(TS_04SetUpAdditionalBrigades[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_04SetUpAdditionalBrigades>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }
Exemple #13
0
 public TS_02DemolishItems[] PostTSDemolishItems(TS_02DemolishItems[] tsPostedRecords)
 {
     using (var dataContext = new AusterlitzDbContext())
     {
         var listRepository = new TurnSheetRepository <TS_02DemolishItems>(dataContext);
         var result         = listRepository.SaveRange(tsPostedRecords);
         return(result.ToArray());
     }
 }