Clients sind nicht mehr als oberste Prio
This commit is contained in:
@@ -41,22 +41,16 @@ namespace DaSaSo.EntityFramework.Services
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<Project>> GetAllByClient(Client client)
|
||||
|
||||
public async Task<IEnumerable<Project>> GetAll()
|
||||
{
|
||||
// Get Clientid
|
||||
int id = client.Id;
|
||||
using (DaSaSoDbContext context = _contextFactory.CreateDbContext())
|
||||
using(DaSaSoDbContext context = _contextFactory.CreateDbContext())
|
||||
{
|
||||
IEnumerable<Project> entities = await context.Projects.Where(x => x.Client.Id == id).ToListAsync();
|
||||
IEnumerable<Project> entities = await context.Projects.ToListAsync();
|
||||
return entities;
|
||||
}
|
||||
}
|
||||
|
||||
public Task<IEnumerable<Project>> GetAll()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public async Task<Project> Update(int id, Project entity)
|
||||
{
|
||||
return await _nonQueryDataService.Update(id, entity);
|
||||
|
||||
Reference in New Issue
Block a user