public ActionResult Access(Guid?id) { if (GlobalClass.SystemSession) { StaffClass staffList = Val.FillStaffInfo(db.StaffList.Find(id)); return(View(staffList)); } else { Exception e = new Exception("Sorry, your Session has Expired"); return(View("Error", new HandleErrorInfo(e, "UserHome", "Logout"))); } }