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

SelectAll() public method

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

            return db.ExecuteDataSet(dbCommand);
        }