Пример #1
0
 internal static void UpdateImagenes(List <int> imagenesIds)
 {
     try
     {
         DaoBase.UpdateImagenes(imagenesIds);
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #2
0
        internal static List <int> GetFotosId()
        {
            try
            {
                List <int> ids = new List <int>();
                DataTable  dt  = DaoBase.GetFotosId();

                foreach (DataRow dr in dt.Rows)
                {
                    ids.Add((int)dr["Id"]);
                }

                return(ids);
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #3
0
        internal static List <Imagen> GetFotosPaginado(List <int> ids)
        {
            try
            {
                List <Imagen> imagenes = new List <Imagen>();

                DataTable dt  = DaoBase.GetFotosPaginado(ids);
                Imagen    aux = new Imagen();
                if (dt.Rows.Count > 0)
                {
                    imagenes = LlenarImagenes(aux, dt);
                }

                return(imagenes);
            }
            catch (Exception)
            {
                throw;
            }
        }