docs: #275 bug fix

This commit is contained in:
Hamid Reza Mohammadi 2022-02-15 19:03:18 +03:30
parent 24cf371b0e
commit 77df96f685

View File

@ -224,6 +224,7 @@ namespace RMuseum.Services.Implementation
{
photo.ChosenOne = false;
}
_context.UpdateRange(oldChosenOnes);
}
await _context.SaveChangesAsync();
@ -235,8 +236,11 @@ namespace RMuseum.Services.Implementation
{
photo.PicOrder = photo.PicOrder + 1;
}
if(others.Count > 0)
if (others.Count > 0)
{
_context.UpdateRange(others);
await _context.SaveChangesAsync();
}
}