// movie link EDIT
 @RequestMapping(value = "/edit", method = RequestMethod.GET)
 public ModelAndView movieupdate(HttpServletRequest request) {
   int userId = Integer.parseInt(request.getParameter("id"));
   Admin admin = new Admin();
   admin.setMovie_id(userId);
   ModelAndView model = new ModelAndView("addmovie", "userId", userId);
   return model;
 }
  // movie updating
  @RequestMapping(value = "/movies", method = RequestMethod.POST)
  public ModelAndView movies(@ModelAttribute Admin admin) throws IOException {
    System.out.println("movuie");

    service.movieregister(admin);
    System.out.println(admin.getMovie_name());
    String msg = "movie register sucessfully";

    // return new ModelAndView("admindashboard","msg",msg);
    return new ModelAndView("redirect:/movielist", "msg", msg);
  }