Leitungen können nun bearbeitet werden
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user