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