Most működik az üzenetküldés Backenden

This commit is contained in:
2025-04-07 17:05:27 +02:00
parent a3be387ee1
commit 85976547f6
13 changed files with 1056 additions and 70 deletions
+8 -7
View File
@@ -45,14 +45,17 @@ namespace WorkFlowCheck.BL.Services
try
{
var res = await _dbContext.CheckPoints
var checkpoint = await _dbContext.CheckPoints
.Include(i => i.CheckListTemplateRows)
.Where(w => w.Id == id)
.AsNoTracking()
.FirstOrDefaultAsync();
if (res != null)
if (checkpoint != null)
{
retVal = _mapper.Map<CheckPointDTO>(res);
retVal = _mapper.Map<CheckPointDTO>(checkpoint);
var role = await _dbContext.Roles.Where(w => w.Id == retVal.RoleId).FirstOrDefaultAsync();
}
}
catch (Exception ex)
@@ -332,10 +335,8 @@ namespace WorkFlowCheck.BL.Services
{
var res = await _dbContext.CheckListHeaders
.Where(w => w.IsEditable &&
w.UserId == userId &&
w.IsDeleted != true &&
(w.CheckStatus == CheckStatus.InProgress ||
w.CheckStatus == CheckStatus.Open))
w.IsDeleted != true
)
.Include(i => i.CheckListRows)
//.ThenInclude(i => i.CheckListTemplateRow)
.AsNoTracking()