yavsccli target
This commit is contained in:
parent
d12667d6de
commit
f39d6c48c5
15 changed files with 85 additions and 107 deletions
|
|
@ -6,11 +6,10 @@ namespace Yavsc.ViewComponents
|
|||
{
|
||||
public partial class CommentViewComponent : ViewComponent
|
||||
{
|
||||
IStringLocalizer<CommentViewComponent> localizer;
|
||||
private readonly IStringLocalizer<CommentViewComponent> localizer;
|
||||
public CommentViewComponent(IStringLocalizer<CommentViewComponent> localizer)
|
||||
{
|
||||
this.localizer = localizer;
|
||||
|
||||
this.localizer = localizer;
|
||||
}
|
||||
public IViewComponentResult Invoke(IIdentified<long> longCommentable)
|
||||
{
|
||||
|
|
@ -19,4 +18,4 @@ namespace Yavsc.ViewComponents
|
|||
return View(longCommentable.GetType().Name, new Comment{ PostId = longCommentable.Id });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue