public IActionResult DeletePage(int pageId) { string pageName = pageService.GetPageNameById(pageId); pageService.DeletePage(pageId); string content = string.Format("{0} requested deletion of page: {1}", GetCurrentUserName(User.GetUserId()), pageName); logsService.AddNewLog("Delete", content); return(RedirectToAction("EditStaticPages")); }