@RequestMapping(value = {"/search"}, method = RequestMethod.GET)
    public String search(@RequestParam(value = "name", required = false) String name, @RequestParam(value = "page", required = false) Integer page, Model model) {
        if (name == null) {
            name = "";
        }
        if (page == null) {
            page = 0;
        }

        List<Employee> el = employeeService.findEmployees(name, page);
        int pages = employeeService.pageCountForSerach(name);
        if (el == null) {
            return "notFound";
        }
        model.addAttribute("name", name);
        model.addAttribute("pages", pages);
        model.addAttribute("employeeList", el);
        return "searchresult";
    }