CheckPoint -y CheckListTemplateRow
This commit is contained in:
@@ -27,7 +27,10 @@ namespace WorkFlowCheck.BL.Services
|
||||
|
||||
try
|
||||
{
|
||||
var res = await _dbContext.CheckPoints.ToListAsync();
|
||||
var res = await _dbContext.CheckPoints
|
||||
.Include(i => i.CheckListTemplateRows)
|
||||
.AsNoTracking()
|
||||
.ToListAsync();
|
||||
if (res != null)
|
||||
{
|
||||
retVal = _mapper.Map<List<CheckPointDTO>>(res);
|
||||
@@ -89,7 +92,7 @@ namespace WorkFlowCheck.BL.Services
|
||||
if (res != null)
|
||||
{
|
||||
retVal = _mapper.Map<List<CheckListTemplateHeaderDTO>>(res);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -99,6 +102,6 @@ namespace WorkFlowCheck.BL.Services
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user