Kanalschaden werden richtig geparsed
This commit is contained in:
@@ -39,22 +39,18 @@ namespace DaSaSo.EntityFramework.Services
|
||||
|
||||
public async Task<Client> Get(int id)
|
||||
{
|
||||
using (DaSaSoDbContext context = _contextFactory.CreateDbContext())
|
||||
{
|
||||
Client entity = await context.Clients.Include(a => a.Projects).FirstOrDefaultAsync((e) => e.Id == id);
|
||||
using DaSaSoDbContext context = _contextFactory.CreateDbContext();
|
||||
Client entity = await context.Clients.Include(a => a.Projects).FirstOrDefaultAsync((e) => e.Id == id);
|
||||
|
||||
return entity;
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<Client>> GetAll()
|
||||
{
|
||||
using (DaSaSoDbContext context = _contextFactory.CreateDbContext())
|
||||
{
|
||||
IEnumerable<Client> entities = await context.Clients.ToListAsync();
|
||||
using DaSaSoDbContext context = _contextFactory.CreateDbContext();
|
||||
IEnumerable<Client> entities = await context.Clients.ToListAsync();
|
||||
|
||||
return entities;
|
||||
}
|
||||
return entities;
|
||||
}
|
||||
|
||||
public async Task<Client> Update(int id, Client entity)
|
||||
|
||||
Reference in New Issue
Block a user