public ActionResult ListLog() { if (Session["UserName"] != null && (int)Session["Role"] == 1) { ViewBag.ListLog = LogAction.ListLog(); return(View()); } return(RedirectToAction("Login", "Account")); }
public ActionResult ListLog() { ViewBag.ListLog = LogAction.ListLog(); return(View()); }