@RequestMapping(value = "/delete/{id}/{fileCode}", method = RequestMethod.DELETE)
 @ResponseBody
 public Boolean delete(@PathVariable long id, @PathVariable String fileCode) {
   try {
     allocateTrainingService.deleteByEntityId(id);
     if (!fileCode.equals("noFile")) iFileProviderService.deleteByFileCode(fileCode);
     return true;
   } catch (Exception e) {
     return false;
   }
 }