diff --git a/RMuseum/Services/Implementation/RecitationService.cs b/RMuseum/Services/Implementation/RecitationService.cs index bc6a5e43..b9622fe4 100644 --- a/RMuseum/Services/Implementation/RecitationService.cs +++ b/RMuseum/Services/Implementation/RecitationService.cs @@ -1055,7 +1055,14 @@ namespace RMuseum.Services.Implementation )) { await connection.OpenAsync(); - await connection.ExecuteAsync(sql); + using(MySqlCommand cmd = new MySqlCommand(sql, connection)) + { + await cmd.ExecuteNonQueryAsync(); + int AudioId = (int)cmd.LastInsertedId; + narration.GanjoorAudioId = AudioId; + context.Recitations.Update(narration); + await context.SaveChangesAsync(); + } } tracker.FirstDbUpdated = true;