public Boolean Eliminar(clsImpuesto Imp)
        {
            try
            {
                using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
                {

                    var x = (from q in ent.Impuesto where q.IdImpuesto == Imp.IdImpuesto select q).First();

                    ent.DeleteObject(x);

                    ent.SaveChanges();

                }
                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
        }
        public Boolean Eliminar(clsMedioPago Medio)
        {
            try
            {
                using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
                {

                    var x = (from q in ent.MedioPago where q.IdMedioPago == Medio.IdMedioPago select q).First();

                    ent.DeleteObject(x);

                    ent.SaveChanges();

                }
                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
        }
        public Boolean Eliminar(clsEmpresaServicio  Empresa)
        {
            try
            {
                using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
                {

                    var x = (from q in ent.EmpresaServicio  where q.IdEmpresaServicio ==( Empresa .IdEmpresaServicio)  select q).First();

                    ent.DeleteObject(x);

                    ent.SaveChanges();

                }
                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
        }
        public Boolean Eliminar(clsCuentaBancaria  Cuenta)
        {
            try
            {
                using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
                {

                    var x = (from q in ent.CuentaBancaria where q.Serie == Cuenta.Serie select q).First();

                    ent.DeleteObject(x);

                    ent.SaveChanges();

                }
                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
        }
        public Boolean Eliminar(clsOrdenPagoDet OrdenDet)
        {
            try
            {
                using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
                {

                    var x = (from q in ent.OrdenPagoDet where q.NumLinea == OrdenDet.NumLinea select q).First();

                    ent.DeleteObject(x);

                    ent.SaveChanges();

                }
                return true;
            }
            catch (Exception)
            {
                return false;
            }
        }
 public void Eliminar(clsCuentaPorPagar CuentaPorPagar)
 {
     using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
     {
         var x = (from q in ent.CuentaPorPagar where q.NumCuentaPorPagar == (CuentaPorPagar._NumCuentaPorPagar) select q).First();
         ent.DeleteObject(x);
         ent.SaveChanges();
     }
 }
 public void Eliminar(clsEmpresaServicio Empresa)
 {
     using (CuentasPorPagarEntities ent = new CuentasPorPagarEntities())
     {
         var x = (from q in ent.EmpresaServicio where q.IdEmpresaServicio == (Empresa._IdEmpresaServicio) select q).First();
         ent.DeleteObject(x);
         ent.SaveChanges();
     }
 }