@RequestMapping(value = "/supplier", method = RequestMethod.GET)
  public String showSupplier(
      @ModelAttribute MedClinic clinic,
      Provider provider,
      @RequestParam("providername") String providername,
      Model map) {
    provider.setName(providername);

    Date beginDate = medClinicService.getLastSending(provider, clinic);
    map.addAttribute("supplier", beginDate);
    return "supplier";
  }
 @RequestMapping(value = "/getlastsending")
 public String getLastSending(
     @ModelAttribute MedClinic medClinic, @ModelAttribute Provider provider, Model model) {
   model.addAttribute("lastsending", medClinicService.getLastSending(medClinic, provider));
   return "lastsending";
 }