plz show codes..not running...
@{Html.RenderAction("Archieves", "UserBlog");}
public ActionResult Archieves()
{
try
{
var model = new BlogModel();
var blogRecentList = _apiBlog.GetAllBlogArchieves().ToList();
model.BlogList = blogRecentList.Select(item =>
{
return new BlogModel()
{
Month = item.MonthYear,
};
}).ToList();
model.ArchievesBlogList = model.BlogList.OrderByDescending(x => x.ID).ToList();
return PartialView("_BlogArchieve", model);
}
catch (Exception ex)
{
throw ex;
}
}