Kanalschaden werden richtig geparsed
This commit is contained in:
@@ -37,12 +37,10 @@ namespace DaSaSo.EntityFramework.Services
|
||||
|
||||
public async Task<Buildingsite> Get(int id)
|
||||
{
|
||||
using (DaSaSoDbContext context = _contextFactory.CreateDbContext())
|
||||
{
|
||||
Buildingsite entity = await context.Buildingsites.FirstOrDefaultAsync((e) => e.Id == id);
|
||||
using DaSaSoDbContext context = _contextFactory.CreateDbContext();
|
||||
Buildingsite entity = await context.Buildingsites.FirstOrDefaultAsync((e) => e.Id == id);
|
||||
|
||||
return entity;
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
|
||||
public Task<IEnumerable<Buildingsite>> GetAll()
|
||||
@@ -54,11 +52,9 @@ namespace DaSaSo.EntityFramework.Services
|
||||
{
|
||||
// Get Clientid
|
||||
int id = project.Id;
|
||||
using (DaSaSoDbContext context = _contextFactory.CreateDbContext())
|
||||
{
|
||||
IEnumerable<Buildingsite> entities = await context.Buildingsites.Where(x => x.Project.Id == id).ToListAsync();
|
||||
return entities;
|
||||
}
|
||||
using DaSaSoDbContext context = _contextFactory.CreateDbContext();
|
||||
IEnumerable<Buildingsite> entities = await context.Buildingsites.Where(x => x.Project.Id == id).ToListAsync();
|
||||
return entities;
|
||||
}
|
||||
|
||||
public async Task<Buildingsite> Update(int id, Buildingsite entity)
|
||||
|
||||
Reference in New Issue
Block a user