package com.uca.gui; import com.uca.core.*; import freemarker.template.*; import java.io.*; import java.util.*; public class ProfGUI { public static String getAllProfs() throws IOException, TemplateException { Map<String, Object> input = new HashMap<>(); input.put("profs", Core.Prof.getAll()); return DefaultGUI.getDefaultGUI(input, "profs.ftl"); } public static void delete(String id) { Core.Prof.delete(Core.Prof.getById(Integer.parseInt(id))); } }