Ohne Syncfusion

This commit is contained in:
2023-04-11 19:09:28 +02:00
parent d9e3fdb793
commit c4fd240f59
10 changed files with 107 additions and 107 deletions

View File

@@ -55,6 +55,15 @@ namespace SewerStammGen.EntityFramework.Services
throw new NotImplementedException();
}
public async Task<Schacht> GetSchachtByNameAndProjekt(string name, int projektID)
{
using(SewerStammGenDbContext context = _contextFactory.CreateDbContext())
{
Schacht entity = await context.Set<Schacht>().Where(x => x.Projekt.Id.Equals(projektID) && x.Objektbezeichnung.Equals(name)).FirstOrDefaultAsync();
return entity;
}
}
public async Task<Schacht> Update(int id, Schacht entity)
{
return await _nonQueryDataService.Update(id, entity);