public ActionResult PersonnelList() { try { if (Session["User"] == null) { return(RedirectToAction("Login", "Account")); } var personnel = _personnelRepository.GetAllPersonnel(); return(View(personnel)); } catch (Exception) { throw; } }