예제 #1
0
  public static void delete(long id) {
    MJPastTraining pastTraining = MJPastTraining.findById(id);
    pastTraining.delete();

    flash.success("deleted");

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

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