Exemplo n.º 1
0
        public ActionResult Edit(int id)
        {
            _department = new MockDepartment();

            ViewBag.DepartmentName = _department.GetAllDepartment();
            var model = _employee.GetEmployeeById(id);

            return(View(model));
        }
        public ActionResult Details(int?id)
        {
            var employee = db.GetEmployeeById(id);

            return(View(employee));
        }