@RequestMapping(value = "/employeeForm")
    public ModelAndView showEmployeeForm(HttpServletRequest request)
    {
        ModelAndView modelAndView = new ModelAndView("employeeForm");
        
        String method = request.getParameter("action");
        if (method.equals("add"))
        {
            modelAndView.addObject("command", new Employee());
        }
        else if (method.equals("edit")) {
           String employeeId = request.getParameter("id");
            Employee employee = getEmployeesDAO().getById(Integer.parseInt(employeeId));
            modelAndView.addObject("command", employee);
        }
        
        List<Worktype> worktypes = getWorktypesDAO().getAll();
        modelAndView.addObject("worktypes", worktypes);
        
        return modelAndView;
    }