divan/DiwanRazor/Pages/Partials/DiwanPage/_MultipleQuotedPoemsPartial.cshtml.cs
Anas Rashid e8f2306422 Rename Ganjoor -> Diwan throughout the code
Projects (GanjooRazor -> DiwanRazor, GanjoorService.sln -> DiwanService.sln), files,
folders, classes, namespaces, settings, API routes (/api/diwan) and DB tables (Diwan*).
External addresses (ganjoor.net, github.com/ganjoor) unchanged. Migrations renamed
consistently (no pending model changes); requires a fresh database.
Upstream RUNNING_LOCALLY/SEMANTIC_SEARCH docs archived unmodified under docs/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:49:01 +02:00

28 lines
820 B
C#

using Microsoft.AspNetCore.Mvc.RazorPages;
using RMuseum.Models.Diwan.ViewModels;
namespace DiwanRazor.Pages
{
public class _MultipleQuotedPoemsPartialModel : PageModel
{
public DiwanQuotedPoemViewModel[] DiwanQuotedPoems { get; set; }
public string PoetImageUrl { get; set; }
public string PoetNickName { get; set; }
public bool CanEdit { get; set; }
public _QuotedPoemPartialModel GetQuotedPoemModel(DiwanQuotedPoemViewModel quotedPoem, string poetImageUrl, string poetNickName)
{
return new _QuotedPoemPartialModel()
{
DiwanQuotedPoemViewModel = quotedPoem,
PoetImageUrl = poetImageUrl,
PoetNickName = poetNickName,
CanEdit = CanEdit,
};
}
}
}