Interktion im WPF erweitert

This commit is contained in:
HuskyTeufel
2021-09-22 16:26:56 +02:00
parent efa52c117c
commit e23f898f14
48 changed files with 1946 additions and 88 deletions

View File

@@ -0,0 +1,30 @@
using DaSaSo.Domain.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DaSaSo.Domain.Services.BuildingsiteServices
{
public class BuildingsiteService : IBuildingsiteService
{
private readonly IDataService<Project> _projectService;
public BuildingsiteService(IDataService<Project> projectService)
{
_projectService = projectService;
}
public async Task<Buildingsite> CreateBuildingsite(Project proj)
{
Buildingsite buildingsite = new Buildingsite()
{
Project = proj
};
proj.BuildingSites.Add(buildingsite);
await _projectService.Update(proj.Id, proj);
return buildingsite;
}
}
}