Elvileg jó, meg a mentés is.
This commit is contained in:
@@ -167,10 +167,17 @@ namespace WorkFlowCheck.MAUI.Services
|
||||
.Where(w => w.Id == checkListRowDTO.Id).FirstOrDefaultAsync();
|
||||
if (checkListRow != null)
|
||||
{
|
||||
checkListRow.Answer = checkListRowDTO.Answer;
|
||||
if (checkListRow.Answer != checkListRowDTO.Answer)
|
||||
{
|
||||
checkListRow.Answer = checkListRowDTO.Answer;
|
||||
}
|
||||
|
||||
if (checkListRowDTO.Photo != null && checkListRowDTO.Photo.Length > 0 && withPhoto)
|
||||
{
|
||||
checkListRow.Photo = checkListRowDTO.Photo;
|
||||
if (!checkListRow.Photo.SequenceEqual(checkListRowDTO.Photo ?? Array.Empty<byte>()))
|
||||
{
|
||||
checkListRow.Photo = checkListRowDTO.Photo ?? Array.Empty<byte>();
|
||||
}
|
||||
}
|
||||
await _dbContext.SaveChangesAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user