예제 #1
0
        /// <summary>
        /// Mise à jour du centre
        /// </summary>
        /// <param name="c"></param>
        /// <returns></returns>
        public int UpdateCentre(Centre c)
        {
            cdao = new DAOCentre();

            try
            {
                return(cdao.UpdateCentre(c));
            }
            catch (Exception ex)
            {
                throw new BLLExceptionsClient("[BLL] UpdateCentre : \n" + ex.Message, ex);
            }
        }
예제 #2
0
        /// <summary>
        /// Obtenir le liste des centre en fonction de l'id client
        /// </summary>
        /// <param name="search"></param>
        /// <returns></returns>
        public List <Centre> GetCentres(int search)
        {
            cdao = new DAOCentre();

            try
            {
                return(cdao.GetCentresByIdClient(search));
            }
            catch (Exception ex)
            {
                throw new BLLExceptionsClient("[BLL] GetCentres : \n" + ex.Message, ex);
            }
        }