Ejemplo n.º 1
0
        public static ObraSocial GetObraSocial(int IdObraSocial)
        {
            Conexiones.Con_ObraSocial Conn = new Conexiones.Con_ObraSocial();
            DataRow DR = Conn.Select_ObraSocialById(IdObraSocial);

            if (DR != null)
            {
                return(new ObraSocial(DR));
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 2
0
        public static List <ObraSocial> BuscarObrasSociales(string SearchString = "%")
        {
            Conexiones.Con_ObraSocial Conn = new Conexiones.Con_ObraSocial();
            DataTable DT = Conn.Search_ObraSocial(SearchString);

            if (DT != null)
            {
                List <ObraSocial> t_OS = new List <ObraSocial>();
                for (int a = 0; a < DT.Rows.Count; a++)
                {
                    t_OS.Add(new ObraSocial(DT.Rows[a]));
                }
                return(t_OS);
            }
            else
            {
                return(null);
            }
        }