コード例 #1
0
 public static Prestamos Buscar(Expression <Func <Prestamos, bool> > criterio)
 {
     using (var context = new Respository <Prestamos>())
     {
         try
         {
             return(context.Buscar(criterio));
         }
         catch (Exception)
         {
             throw;
         }
     }
 }
コード例 #2
0
        public static Cuentas Buscar(Expression<Func<Cuentas, bool>> criterio)
        {
            using (var context = new Respository<Cuentas>())
            {
                try
                {
                    return context.Buscar(criterio);
                }
                catch (Exception)
                {

                    throw;
                }
            }
        }
コード例 #3
0
        public static Facturas Buscar(Expression <Func <Facturas, bool> > criterio)
        {
            Facturas factura = null;

            using (var context = new Respository <Facturas>())
            {
                try
                {
                    factura = context.Buscar(criterio);

                    if (factura != null)
                    {
                        factura.Relacion.Count();
                    }
                }
                catch (Exception)
                {
                    throw;
                }
            }

            return(factura);
        }