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

            try
            {
                return(posteDAO.GetPostes());
            }
            catch (Exception exception)
            {
                throw exception;
            }
        }