public static Poste OneById(int id) { try { return(PosteDAO.getOneById(id)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public static List <Poste> List(string query) { try { return(PosteDAO.getList(query)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public List <Poste> GetPostes() { PosteDAO posteDAO = new PosteDAO(); try { return(posteDAO.GetPostes()); } catch (Exception exception) { throw exception; } }