예제 #1
0
 public static bool Eliminar(Facturas factura)
 {
     using (var context = new DAL.Repository <Facturas>())
     {
         try
         {
             return(context.Eliminar(factura));
         }
         catch (Exception)
         {
             throw;
         }
     }
 }
        public static bool Eliminar(TiposEmails tipo)
        {
            using (var conec = new DAL.Repository <TiposEmails>())
            {
                try
                {
                    return(conec.Eliminar(tipo));
                }
                catch (Exception)
                {
                    throw;
                }
            }

            return(false);
        }