const db = require("../models");
const PaymentType = db.payment_type;
const Op = db.Sequelize.Op;
 

exports.findAll = (req, res) => {
 
  var condition = { status: 'active' };
  PaymentType.findAll({ where: condition,order: [
        ['name', 'ASC'],
    ]})
    .then(data => {
      res.send(data);
    })
    .catch(err => {
      res.status(500).send({
        message:
          err.message || "Some error occurred while retrieving tutorials."
      });
    });
};
 
