Exemple #1
0
 private string cargaChoferSeleccionado(int usuario_id)
 {
     try
     {
         Chofer chofer_mapper = new Chofer();
         Chofer chofer        = chofer_mapper.MapearDeUsuario(usuario_id);
         if (!chofer.habilitado)
         {
             throw new Exception("El chofer seleccionado se encuentra inhabilitado");
         }
         return(chofer.nombre + ' ' + chofer.apellido);
     }
     catch (Exception exception)
     {
         throw new Exception(exception.Message);
     }
 }