Exemplo n.º 1
0
        /// <summary>
        /// Allows to charge the availables bus seats for a specific date
        /// </summary>
        /// <param name="fec">specific date </param>
        /// <param name="hora">specific Hour </param>
        /// <returns>List of numbers of the available bus seats</returns>
        public List <int> camposDisponibles(string fec, string hora)
        {
            TiquetesDAL x = new TiquetesDAL();
            List <int>  c = x.camposDisponibles(fec, hora);
            List <int>  a = x.camposDisponiblesInter(fec, hora);

            foreach (int az in a)
            {
                c.Add(az);
            }
            return(c);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Allows to charge the availables bus seats for a specific date
        /// </summary>
        /// <param name="fec">specific date </param>
        /// <param name="v">specific Hour </param>
        /// <returns>List of numbers of the available bus seats</returns>
        public List <int> camposDisponiblesInter(string fec, string v)
        {
            TiquetesDAL x = new TiquetesDAL();
            List <int>  c = x.camposDisponiblesInter(fec, v);
            List <int>  a = x.camposDisponibles(fec, v);

            foreach (int za in a)
            {
                c.Add(za);
            }
            return(c);
        }