Haltungübersicht angefangen
This commit is contained in:
@@ -13,16 +13,14 @@ namespace SewerStammGen.WPF.Commands
|
||||
{
|
||||
class SchachtAddCommand : AsyncCommandBase
|
||||
{
|
||||
private readonly ISchachtDataService schachtDataService;
|
||||
private readonly IActualState actualState;
|
||||
private readonly IRenavigator renavigator;
|
||||
private readonly IDataService<Projekt> projektService;
|
||||
private readonly ISchachtService schachtService;
|
||||
|
||||
|
||||
public SchachtAddCommand(ISchachtDataService schachtDataService,IDataService<Projekt> projektService, IActualState actualState, IRenavigator renavigator, ISchachtService schachtService)
|
||||
public SchachtAddCommand(IDataService<Projekt> projektService, IActualState actualState, IRenavigator renavigator, ISchachtService schachtService)
|
||||
{
|
||||
this.schachtDataService = schachtDataService;
|
||||
this.actualState = actualState;
|
||||
this.renavigator = renavigator;
|
||||
this.projektService = projektService;
|
||||
@@ -31,13 +29,6 @@ namespace SewerStammGen.WPF.Commands
|
||||
|
||||
public override async Task ExecuteAsync(object? parameter)
|
||||
{
|
||||
/*var d = await projektService.Get(actualState.ProjektID);
|
||||
Schacht newSchacht = new Schacht();
|
||||
newSchacht.Projekt = d;
|
||||
newSchacht.Objektbezeichnung = "test";
|
||||
|
||||
await schachtDataService.Create(newSchacht);
|
||||
*/
|
||||
Projekt aktuelleProjekt = await projektService.Get(actualState.ProjektID);
|
||||
Schacht schacht = await schachtService.CreateSchacht(aktuelleProjekt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user