Most működik a fénykép

This commit is contained in:
2025-03-24 18:25:12 +01:00
parent 8f38408646
commit 3d44804bad
4 changed files with 130 additions and 13 deletions
@@ -138,5 +138,23 @@ namespace WorkFlowCheck.MAUI.Services
return retVal;
}
public async Task<CheckListRowDTO> UpdateCheckListRow(CheckListRowDTO checkListRowDTO)
{
var retVal = checkListRowDTO;
try
{
var checkListRow = await _dbContext.CheckListRows.Where(w => w.Id == checkListRowDTO.Id).FirstOrDefaultAsync();
if (checkListRow != null)
{
checkListRow.Photo = checkListRowDTO.Photo;
await _dbContext.SaveChangesAsync();
}
}
catch (Exception)
{
}
return retVal;
}
}
}