Exemplo n.º 1
0
        public static List <string> GetAllContactMail()
        {
            var lstObj = new List <ContactSite>();

            try
            {
                using (var objDal = new BaseDAL_II())
                {
                    lstObj = objDal.consultarTodos <ContactSite>();
                }
            }
            catch (Exception ex)
            {
                throw new Exception("Error:  " + ex.Message);
            }

            var lstContactMail = new List <string>();

            foreach (var item in lstObj)
            {
                lstContactMail.Add(item.Email);
            }

            return(lstContactMail);
        }
Exemplo n.º 2
0
        public static List <string> GetAllRazon()
        {
            var lstObj = new List <Cliente>();

            try
            {
                using (var objDal = new BaseDAL_II())
                {
                    lstObj = objDal.consultarTodos <Cliente>();
                }
            }
            catch (Exception ex)
            {
                throw new Exception("Error:  " + ex.Message);
            }

            var lstNameClient = new List <string>();

            foreach (var item in lstObj)
            {
                lstNameClient.Add(item.RazonSocial);
            }

            return(lstNameClient);
        }
Exemplo n.º 3
0
 public static List <AplicationForm> GetAll()
 {
     try
     {
         using (var objDal = new BaseDAL_II())
         {
             return(objDal.consultarTodos <AplicationForm>());
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Error:  " + ex.Message);
     }
 }
Exemplo n.º 4
0
        public static List <Usuario> GetAllUsers()
        {
            var lstObj = new List <Usuario>();

            try
            {
                using (var objDal = new BaseDAL_II())
                {
                    lstObj = objDal.consultarTodos <Usuario>();
                }
            }
            catch (Exception ex)
            {
                throw new Exception("Error:  " + ex.Message);
            }
            return(lstObj);
        }
Exemplo n.º 5
0
        public static List<Country> GetAllConuntry()
        {
            var lstObj = new List<Country>();
            try
            {
                using (var objDal = new BaseDAL_II())
                {
                    lstObj = objDal.consultarTodos<Country>();
                }
            }
            catch (Exception ex)
            {
                throw new Exception("Error:  " + ex.Message);
            }


            return lstObj;
        }
Exemplo n.º 6
0
        public static List <ContactType> GetAllTypeContact()
        {
            var lstObj = new List <ContactType>();

            try
            {
                using (var objDal = new BaseDAL_II())
                {
                    lstObj = objDal.consultarTodos <ContactType>();
                }
            }
            catch (Exception ex)
            {
                throw new Exception("Error:  " + ex.Message);
            }

            return(lstObj);
        }