pitit refact

This commit is contained in:
Paul Schneider 2026-06-04 12:13:37 +01:00
commit 20713eef64
235 changed files with 5374 additions and 373 deletions

View file

@ -23,7 +23,7 @@ namespace Yavsc.ViewComponents
var comment = await context.Comment.Include(c=>c.Children).FirstOrDefaultAsync(c => c.Id==id);
if (comment == null)
throw new InvalidOperationException();
ViewData["apictlr"] = "/api/blogcomments";
ViewBag.apictlr = "/api/blogcomments";
return View("Default", comment);
}

View file

@ -16,9 +16,9 @@ namespace Yavsc.ViewComponents
}
public IViewComponentResult Invoke(ITaggable<long> longTaggable)
{
ViewData["Tags"] = longTaggable.GetTags();
ViewData["at"] = localizer["at"];
ViewData["apictlr"] = "~/api/"+localizer["apiRouteTag"+longTaggable.GetType().Name];
ViewBag.Tags = longTaggable.GetTags();
ViewBag.at = localizer["at"];
ViewBag.apictlr = "~/api/"+localizer["apiRouteTag"+longTaggable.GetType().Name];
return View(longTaggable);
}
}