Example #1
0
        private string nombreChofer(int id)
        {
            string        nombre = "";
            List <Chofer> listaChoferesRelacionados = LN.ConsultaChoferRelacionados();

            foreach (Chofer item in listaChoferesRelacionados)
            {
                if (item.idChofer == id)
                {
                    nombre = item.nombreChofer;
                }
            }
            return(nombre);
        }
Example #2
0
 private bool validarChoferInactivo(int id)
 {
     try
     {
         bool          validar = false;
         List <Chofer> listaId = new List <Chofer>();
         listaId = LN.ConsultaChoferRelacionados();
         foreach (Chofer item in listaId)
         {
             if (item.idChofer == id)
             {
                 validar = true;
             }
         }
         return(validar);
     }
     catch (Exception)
     {
         throw;
     }
 }