public static void delete(long id) {
    MJPastTraining pastTraining = MJPastTraining.findById(id);
    pastTraining.delete();

    flash.success("deleted");

    MJPastTrainings.show(pastTraining.resident.id);
  }
  public static void save(MJPastTraining pastTraining) {
    pastTraining.save();
    flash.success("saved");

    MJPastTrainings.show(pastTraining.resident.id);
  }