count news

This commit is contained in:
2024-08-01 17:28:00 +03:30
parent d73b5dc266
commit fbb2d406cb
4 changed files with 61 additions and 6 deletions

View File

@ -13,6 +13,8 @@ namespace WebApplication1.Controllers
public ActionResult Index()
{
ViewBag.newsCount = db.news.Count();
ViewBag.views = "";
setTitle();
return View();
}