adding fullurl to catviewmodel
This commit is contained in:
parent
e6f6be5d0e
commit
6d4cfc5146
@ -22,6 +22,11 @@ namespace RMuseum.Models.Ganjoor.ViewModels
|
||||
/// </summary>
|
||||
public string UrlSlug { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// full url
|
||||
/// </summary>
|
||||
public string FullUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Next Category without Ancestors/Children/Poems info
|
||||
/// </summary>
|
||||
|
||||
@ -645,6 +645,14 @@
|
||||
<param name="poems"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Controllers.GanjoorController.GetCatByUrl(System.String,System.Boolean)">
|
||||
<summary>
|
||||
cat by url
|
||||
</summary>
|
||||
<param name="url"></param>
|
||||
<param name="poems"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Controllers.GanjoorController.GetPoemById(System.Int32,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">
|
||||
<summary>
|
||||
get poem by id
|
||||
@ -3468,6 +3476,11 @@
|
||||
url => slug
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorCatViewModel.FullUrl">
|
||||
<summary>
|
||||
full url
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorCatViewModel.Next">
|
||||
<summary>
|
||||
Next Category without Ancestors/Children/Poems info
|
||||
@ -4694,6 +4707,14 @@
|
||||
<param name="poems"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.IGanjoorService.GetCatByUrl(System.String,System.Boolean)">
|
||||
<summary>
|
||||
get cat by url
|
||||
</summary>
|
||||
<param name="url"></param>
|
||||
<param name="poems"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.IGanjoorService.GetPoemById(System.Int32,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">
|
||||
<summary>
|
||||
Get Poem By Id
|
||||
@ -5464,6 +5485,14 @@
|
||||
<param name="url"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.Implementation.GanjoorService.GetCatByUrl(System.String,System.Boolean)">
|
||||
<summary>
|
||||
get cat by url
|
||||
</summary>
|
||||
<param name="url"></param>
|
||||
<param name="poems"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.Implementation.GanjoorService.GetCatById(System.Int32,System.Boolean)">
|
||||
<summary>
|
||||
get cat by id
|
||||
|
||||
@ -163,7 +163,8 @@ namespace RMuseum.Services.Implementation
|
||||
{
|
||||
Id = parent.Id,
|
||||
Title = parent.Title,
|
||||
UrlSlug = parent.UrlSlug
|
||||
UrlSlug = parent.UrlSlug,
|
||||
FullUrl = parent.FullUrl
|
||||
});
|
||||
|
||||
parent = await _context.GanjoorCategories.Where(c => c.Id == parent.ParentId).FirstOrDefaultAsync();
|
||||
@ -185,7 +186,8 @@ namespace RMuseum.Services.Implementation
|
||||
{
|
||||
Id = c.Id,
|
||||
Title = c.Title,
|
||||
UrlSlug = c.UrlSlug
|
||||
UrlSlug = c.UrlSlug,
|
||||
FullUrl = c.FullUrl
|
||||
//other fields null
|
||||
}
|
||||
).SingleOrDefaultAsync();
|
||||
@ -205,7 +207,8 @@ namespace RMuseum.Services.Implementation
|
||||
{
|
||||
Id = c.Id,
|
||||
Title = c.Title,
|
||||
UrlSlug = c.UrlSlug
|
||||
UrlSlug = c.UrlSlug,
|
||||
FullUrl = c.FullUrl
|
||||
//other fields null
|
||||
}
|
||||
).SingleOrDefaultAsync();
|
||||
@ -215,6 +218,7 @@ namespace RMuseum.Services.Implementation
|
||||
Id = cat.Id,
|
||||
Title = cat.Title,
|
||||
UrlSlug = cat.UrlSlug,
|
||||
FullUrl = cat.FullUrl,
|
||||
Next = nextCat,
|
||||
Previous = preCat,
|
||||
Ancestors = ancetors,
|
||||
@ -224,7 +228,8 @@ namespace RMuseum.Services.Implementation
|
||||
{
|
||||
Id = c.Id,
|
||||
Title = c.Title,
|
||||
UrlSlug = c.UrlSlug
|
||||
UrlSlug = c.UrlSlug,
|
||||
FullUrl = c.FullUrl
|
||||
}
|
||||
).ToListAsync(),
|
||||
Poems = poems ? await _context.GanjoorPoems.Where(p => p.CatId == cat.Id).OrderBy(p => p.Id).Select
|
||||
|
||||
Loading…
Reference in New Issue
Block a user