probable fix for section deletion bug
This commit is contained in:
parent
5c84067d29
commit
371fa941e2
@ -735,7 +735,7 @@ namespace RMuseum.Services.Implementation
|
||||
{
|
||||
try
|
||||
{
|
||||
var section = await _context.GanjoorPoemSections.Where(s => s.PoemId == poemId && s.Index == sectionIndex).SingleOrDefaultAsync();
|
||||
var section = await _context.GanjoorPoemSections.Where(s => s.PoemId == poemId && s.Index == sectionIndex ).FirstOrDefaultAsync();
|
||||
if (section == null)
|
||||
{
|
||||
return new RServiceResult<bool>(false);//Not found
|
||||
|
||||
Loading…
Reference in New Issue
Block a user