public class DzialAjaxAction {
public String deleteDzialy(Integer id){
try {
DzialService dzialService = (DzialService) BusinessUtil.findBusiness("DzialService");
dzialService.deleteById(id);
} catch (Exception e) {
e.printStackTrace();
return e.getCause().getMessage();
}
return "";