@RequestMapping(value = "/assignmentForm")
    public ModelAndView showCustomerForm(HttpServletRequest request) {
        ModelAndView modelAndView = new ModelAndView("assignmentForm");

        String method = request.getParameter("action");
        if (method.equals("add")) {
            modelAndView.addObject("command", new Assignment());
        } else if (method.equals("edit")) {
            String assignmentId = request.getParameter("id");
            Assignment assignment = getAssignmentsDAO().getById(Integer.parseInt(assignmentId));
            modelAndView.addObject("command", assignment);

        }
        modelAndView.addObject("employeesList", getEmployeesDAO().getAll());
        modelAndView.addObject("projectsList", getProjectsDAO().getAll());
        return modelAndView;
    }