Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
     }
 }
Ejemplo 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);
        }
Ejemplo 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;
        }
Ejemplo 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);
        }