comparison of usage stats of a selected word among all poets #471
This commit is contained in:
parent
bc6e094983
commit
aa8411b011
@ -490,10 +490,10 @@ namespace GanjooRazor.Pages
|
||||
|
||||
return new PartialViewResult()
|
||||
{
|
||||
ViewName = "_WordCountsByPoetPartial",
|
||||
ViewName = "_CategoryWordsCountByCatPartial",
|
||||
ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary())
|
||||
{
|
||||
Model = new _CategoryWordsCountByCatTablePartialModel()
|
||||
Model = new _CategoryWordsCountByCatPartialModel()
|
||||
{
|
||||
Term = term,
|
||||
WordStats = wordCounts,
|
||||
|
||||
5
GanjooRazor/Pages/_CategoryWordsCountByCatPartial.cshtml
Normal file
5
GanjooRazor/Pages/_CategoryWordsCountByCatPartial.cshtml
Normal file
@ -0,0 +1,5 @@
|
||||
@model GanjooRazor.Pages._CategoryWordsCountByCatPartialModel
|
||||
@{
|
||||
}
|
||||
|
||||
<partial name="_CategoryWordsCountByCatTablePartial" model="Model.Model">
|
||||
27
GanjooRazor/Pages/_CategoryWordsCountByCatPartial.cshtml.cs
Normal file
27
GanjooRazor/Pages/_CategoryWordsCountByCatPartial.cshtml.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using RMuseum.Models.Ganjoor.ViewModels;
|
||||
|
||||
namespace GanjooRazor.Pages
|
||||
{
|
||||
public class _CategoryWordsCountByCatPartialModel : PageModel
|
||||
{
|
||||
public string Term { get; set; }
|
||||
public PoetOrCatWordStat[] WordStats { get; set; }
|
||||
public bool Whole { get; set; }
|
||||
public int TotalCount { get; set; }
|
||||
|
||||
public _CategoryWordsCountByCatTablePartialModel Model
|
||||
{
|
||||
get
|
||||
{
|
||||
return new _CategoryWordsCountByCatTablePartialModel()
|
||||
{
|
||||
Term = Term,
|
||||
WordStats = WordStats,
|
||||
Whole = Whole,
|
||||
TotalCount = TotalCount
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user