#208 fixing poet image url in the output model

This commit is contained in:
Hamid Reza Mohammadi 2021-09-27 17:28:09 +03:30
parent 83edc2f777
commit d71f183354

View File

@ -157,7 +157,7 @@ namespace RMuseum.Services.Implementation
{
Id = bookmark.Id,
PoetName = bookmark.Poem.Cat.Poet.Nickname,
PoetImageUrl = $"{WebServiceUrl.Url}{$"/api/rimages/{bookmark.Poem.Cat.Poet.RImageId}.jpg"}",
PoetImageUrl = $"{WebServiceUrl.Url}{$"/api/poet/image/{bookmark.Poem.FullUrl.Substring(1, bookmark.Poem.FullUrl.IndexOf('/', 1) - 1)}.gif"}",
PoemFullTitle = bookmark.Poem.FullTitle,
PoemFullUrl = bookmark.Poem.FullUrl,
CoupletIndex = bookmark.CoupletIndex,