This commit is contained in:
Hamid Reza Mohammadi 2020-11-08 14:58:23 +03:30
parent 1f13d186b6
commit bc8cb1c465

View File

@ -581,7 +581,7 @@ namespace RMuseum.Services.Implementation
if (narration.AudioTitle.IndexOf("فایل صوتی") == 0) //no modification on title
{
GanjoorPoem poem = await _context.GanjoorPoems.Where(p => p.Id == audio.PoemId).SingleOrDefaultAsync();
GanjoorPoem poem = await context.GanjoorPoems.Where(p => p.Id == audio.PoemId).SingleOrDefaultAsync();
if (poem != null)
{
narration.AudioTitle = poem.Title;