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