// GET: Admin/Pages/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var pages = pagess.GetByID(id.Value); if (pages == null) { return(NotFound()); } return(View(pages)); }
public IActionResult Pages(int id) { var page = pages.GetByID(id); if (page != null) { page.Visit += 1; pages.Update(page); pages.Save(); } return(View(page)); }