@RequestMapping(value = "delete.htm", method = RequestMethod.GET)
 public String delete(Long id, ModelMap m) {
   OfferTypeEntity type;
   try {
     type = offerTypeManager.findById(id);
     type.getId();
   } catch (Exception e) {
     return "redirect:show.htm";
   }
   offerTypeManager.delete(type);
   return "redirect:show.htm";
 }