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

SelectAll() public method

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

            return db.ExecuteDataSet(dbCommand);
        }