Leitungen können nun bearbeitet werden

This commit is contained in:
HuskyTeufel
2021-09-28 10:46:16 +02:00
parent d9f34cbf90
commit e8674fed2c
43 changed files with 790 additions and 93 deletions

View File

@@ -31,9 +31,14 @@ namespace DaSaSo.EntityFramework.Services
return await _nonQueryDataService.Delete(id);
}
public Task<Project> Get(int id)
public async Task<Project> Get(int id)
{
throw new NotImplementedException();
using (DaSaSoDbContext context = _contextFactory.CreateDbContext())
{
Project entity = await context.Projects.FirstOrDefaultAsync((e) => e.Id == id);
return entity;
}
}
public async Task<IEnumerable<Project>> GetAllByClient(Client client)