public ActionResult Tabel() { if (!UserLoginManager.IsLogged(Session)) { return(RedirectToAction("Index", "Home")); } return(View()); }
public ActionResult Edit() { if (!UserLoginManager.IsLogged(Session)) { return(RedirectToAction("Index", "Home")); } ViewData["roles"] = _employeeService.GetRoles(); return(View()); }
// GET: Timesheet public ActionResult Edit() { if (!UserLoginManager.IsLogged(Session)) { return(RedirectToAction("Index", "Home")); } ViewData["employees"] = _timesheetService.GetEmployeeNames(); ViewData["projects"] = _timesheetService.GetProjectCodes(); return(View()); }
// GET: Work public ActionResult Index() { if (!UserLoginManager.IsLogged(Session)) { return(RedirectToAction("Index", "Home")); } var currentUser = UserLoginManager.GetCurrentUser(Session); var userVm = new WorkIndexViewModel { Mail = currentUser.Email, Name = currentUser.Name, RoleName = currentUser.Role.Name }; return(View(userVm)); }
public ActionResult Index() { return(UserLoginManager.IsLogged(Session) ? RedirectToAction("Index", "Work") : RedirectToAction("Login", "Home")); }