Ejemplo n.º 1
0
        public ActionResult AccountSettings()
        {
            Employee emp = (Employee)Session["user"];
            AccountSettingsViewModel settings = new AccountSettingsViewModel()
            {
                employeeID = emp.employeeID,
                employeeFirstName = emp.employeeFirstName,
                employeeLastName = emp.employeeLastName,
                employeeEmail = emp.employeeEmail
            };

            return View(settings);
        }
Ejemplo n.º 2
0
        public ActionResult AccountSettings()
        {
            Employee emp = (Employee)Session["user"];

            if (emp == null) {

                return RedirectToAction("Index", "Login");

            }

            AccountSettingsViewModel settings = new AccountSettingsViewModel()
            {
                EmployeeID = emp.EmployeeID,
                EmployeeFirstName = emp.EmployeeFirstName,
                EmployeeLastName = emp.EmployeeLastName,
                EmployeeEmail = emp.EmployeeEmail
            };

            return View(settings);
        }