public static List <Personnel> Liste(String query) { try { return(PersonnelDao.getListPersonnel(query)); } catch (Exception ex) { throw new Exception("Impossible de retourner la liste des élements", ex); } }
public static bool Delete(long id) { try { return(PersonnelDao.getDeletePersonnel(id)); } catch (Exception ex) { throw new Exception("Impossible de supprimer cette enregistrement", ex); } }
public Personnel Insert() { try { return(PersonnelDao.getAjoutPersonnel(personnel)); } catch (Exception ex) { throw new Exception("Impossible d'inserer cette enregistrement", ex); } }
public bool Update() { try { return(PersonnelDao.getUpdatePersonnel(personnel)); } catch (Exception ex) { throw new Exception("Impossible de modifier cette enregistrement", ex); } }
public static Personnel One(Users users) { try { return(PersonnelDao.getOnePersonnel(users)); } catch (Exception ex) { throw new Exception("Impossible d'atteindre l'enregistrement", ex); } }