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

SelectAll() public method

public SelectAll ( Room room ) : DataSet
room Room
return System.Data.DataSet
        public DataSet SelectAll(Room room)
        {
            Database db = DatabaseFactory.CreateDatabase(Constants.HBMCONNECTIONSTRING);
            DbCommand dbCommand = db.GetStoredProcCommand("usp_RoomSelectAll");

            db.AddInParameter(dbCommand, "@CompanyId", DbType.Int32, room.CompanyId);

            return db.ExecuteDataSet(dbCommand);
        }