HBM.GeneralManagement.PaymentTypeDAO.SelectAll C# (CSharp) Method

SelectAll() public method

public SelectAll ( PaymentType paymentType ) : DataSet
paymentType PaymentType
return System.Data.DataSet
        public DataSet SelectAll(PaymentType paymentType)
        {
            Database db = DatabaseFactory.CreateDatabase(Constants.HBMCONNECTIONSTRING);
            DbCommand dbCommand = db.GetStoredProcCommand("usp_PaymentTypeSelectAll");
            db.AddInParameter(dbCommand, "@CompanyId", DbType.Int32, paymentType.CompanyId);

            return db.ExecuteDataSet(dbCommand);
        }