CheckListServices továbbfejlesztése

This commit is contained in:
2025-03-19 18:16:34 +01:00
parent 63b9beef35
commit 2e335e7b8a
14 changed files with 366 additions and 64 deletions
@@ -237,5 +237,32 @@ namespace WorkFlowCheck.BL.Services
return retVal;
}
public async Task<CheckListTemplateRowDTO> GetCheckListTemplateRowAsync(int id)
{
var retVal = new CheckListTemplateRowDTO();
try
{
var res = await _dbContext.CheckListTemplateRows
.Include(i=> i.Equipment)
.Include(i=> i.CheckPoint)
.Where(w => w.Id == id)
.AsNoTracking()
.FirstOrDefaultAsync();
if (res != null)
{
retVal = _mapper.Map<CheckListTemplateRowDTO>(res);
}
}
catch (Exception ex)
{
Log.Error(ex.Message);
}
return retVal;
}
public Task<CheckListTemplateRowDTO> UpdateCheckListTemplateRowAsync(CheckListTemplateRowDTO checkListTemplateRowDTO) => throw new NotImplementedException();
}
}